RNAlib-2.4.0
centroid.h
Go to the documentation of this file.
1 #ifndef VIENNA_RNA_PACKAGE_CENTROID_H
2 #define VIENNA_RNA_PACKAGE_CENTROID_H
3 
6 
7 #ifdef VRNA_WARN_DEPRECATED
8 # ifdef __GNUC__
9 # define DEPRECATED(func) func __attribute__ ((deprecated))
10 # else
11 # define DEPRECATED(func) func
12 # endif
13 #else
14 # define DEPRECATED(func) func
15 #endif
16 
17 /* make this interface backward compatible with RNAlib < 2.2.0 */
18 #define VRNA_BACKWARD_COMPAT
19 
40  double *dist);
41 
58 char *vrna_centroid_from_plist(int length,
59  double *dist,
60  vrna_ep_t *pl);
61 
78 char *vrna_centroid_from_probs(int length,
79  double *dist,
80  FLT_OR_DBL *probs);
81 
82 #ifdef VRNA_BACKWARD_COMPAT
83 
89 DEPRECATED(char *get_centroid_struct_pl(int length,
90  double *dist,
91  vrna_ep_t *pl));
92 
98 DEPRECATED(char *get_centroid_struct_pr(int length,
99  double *dist,
100  FLT_OR_DBL *pr));
101 
102 #endif
103 
104 #endif
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.
char * get_centroid_struct_pl(int length, double *dist, vrna_ep_t *pl)
Get the centroid structure of the ensemble.
Data structure representing a single entry of an element probability list (e.g. list of pair probabil...
Definition: structure_utils.h:69
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:463
char * vrna_centroid_from_plist(int length, double *dist, vrna_ep_t *pl)
Get the centroid structure of the ensemble.
Various data structures and pre-processor macros.
Various utility- and helper-functions for secondary structure parsing, converting, etc.
char * get_centroid_struct_pr(int length, double *dist, FLT_OR_DBL *pr)
Get the centroid structure of the ensemble.
FLT_OR_DBL * pr
A pointer to the base pair probability matrix.