RNAlib-2.3.1
centroid.h
Go to the documentation of this file.
1 #ifndef VIENNA_RNA_PACKAGE_CENTROID_H
2 #define VIENNA_RNA_PACKAGE_CENTROID_H
3 
5 
6 #ifdef DEPRECATION_WARNINGS
7 # ifdef __GNUC__
8 # define DEPRECATED(func) func __attribute__ ((deprecated))
9 # else
10 # define DEPRECATED(func) func
11 # endif
12 #else
13 # define DEPRECATED(func) func
14 #endif
15 
16 /* make this interface backward compatible with RNAlib < 2.2.0 */
17 #define VRNA_BACKWARD_COMPAT
18 
39  double *dist);
40 
57 char *vrna_centroid_from_plist(int length,
58  double *dist,
59  vrna_plist_t *pl);
60 
77 char *vrna_centroid_from_probs(int length,
78  double *dist,
79  FLT_OR_DBL *probs);
80 
81 #ifdef VRNA_BACKWARD_COMPAT
82 
88 DEPRECATED(char *get_centroid_struct_pl(int length,
89  double *dist,
90  vrna_plist_t *pl));
91 
97 DEPRECATED(char *get_centroid_struct_pr(int length,
98  double *dist,
99  FLT_OR_DBL *pr));
100 
101 #endif
102 
103 #endif
char * vrna_centroid_from_plist(int length, double *dist, vrna_plist_t *pl)
Get the centroid structure of the ensemble.
char * vrna_centroid_from_probs(int length, double *dist, FLT_OR_DBL *probs)
Get the centroid structure of the ensemble.
char * vrna_centroid(vrna_fold_compound_t *vc, double *dist)
Get the centroid structure of the ensemble.
double FLT_OR_DBL
Typename for floating point number in partition function computations.
Definition: data_structures.h:48
The most basic data structure required by many functions throughout the RNAlib.
Definition: data_structures.h:454
Various data structures and pre-processor macros.
char * get_centroid_struct_pr(int length, double *dist, FLT_OR_DBL *pr)
Get the centroid structure of the ensemble.
this datastructure is used as input parameter in functions of PS_dot.h and others ...
Definition: data_structures.h:182
FLT_OR_DBL * pr
A pointer to the base pair probability matrix.
char * get_centroid_struct_pl(int length, double *dist, vrna_plist_t *pl)
Get the centroid structure of the ensemble.