RNAlib-2.2.9

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

centroid.h
Go to the documentation of this file.
1 #ifndef VIENNA_RNA_PACKAGE_CENTROID_H
2 #define VIENNA_RNA_PACKAGE_CENTROID_H
3
4 #include <ViennaRNA/data_structures.h>
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
37 char *vrna_centroid(vrna_fold_compound_t *vc,
38 double *dist);
39
56 char *vrna_centroid_from_plist(int length,
57 double *dist,
58 vrna_plist_t *pl);
59
76 char *vrna_centroid_from_probs(int length,
77 double *dist,
78 FLT_OR_DBL *probs);
79
80 #ifdef VRNA_BACKWARD_COMPAT
81
87 DEPRECATED(char *get_centroid_struct_pl(int length,
88 double *dist,
89 vrna_plist_t *pl));
90
96 DEPRECATED(char *get_centroid_struct_pr(int length,
97 double *dist,
98 FLT_OR_DBL *pr));
99
100 #endif
101
102 #endif
vrna_centroid_from_plist
char * vrna_centroid_from_plist(int length, double *dist, vrna_plist_t *pl)
Get the centroid structure of the ensemble.
vrna_centroid_from_probs
char * vrna_centroid_from_probs(int length, double *dist, FLT_OR_DBL *probs)
Get the centroid structure of the ensemble.
vrna_centroid
char * vrna_centroid(vrna_fold_compound_t *vc, double *dist)
Get the centroid structure of the ensemble.
FLT_OR_DBL
double FLT_OR_DBL
Typename for floating point number in partition function computations.
Definition: data_structures.h:39
vrna_fc_s
The most basic data structure required by many functions throughout the RNAlib.
Definition: data_structures.h:424
data_structures.h
get_centroid_struct_pr
char * get_centroid_struct_pr(int length, double *dist, FLT_OR_DBL *pr)
Get the centroid structure of the ensemble.
vrna_plist_s
this datastructure is used as input parameter in functions of PS_dot.h and others ...
Definition: data_structures.h:164
pr
FLT_OR_DBL * pr
A pointer to the base pair probability matrix.
get_centroid_struct_pl
char * get_centroid_struct_pl(int length, double *dist, vrna_plist_t *pl)
Get the centroid structure of the ensemble.