centroid.h
Go to the documentation of this file.
#ifndef VIENNA_RNA_PACKAGE_CENTROID_H
#define VIENNA_RNA_PACKAGE_CENTROID_H
#include <ViennaRNA/data_structures.h>
#ifdef DEPRECATION_WARNINGS
# ifdef __GNUC__
# define DEPRECATED(func) func __attribute__ ((deprecated))
# else
# define DEPRECATED(func) func
# endif
#else
# define DEPRECATED(func) func
#endif
/* make this interface backward compatible with RNAlib < 2.2.0 */
#define VRNA_BACKWARD_COMPAT
char *vrna_centroid(vrna_fold_compound_t *vc,
double *dist);
char *vrna_centroid_from_plist(int length,
double *dist,
vrna_plist_t *pl);
char *vrna_centroid_from_probs(int length,
double *dist,
FLT_OR_DBL *probs);
#ifdef VRNA_BACKWARD_COMPAT
DEPRECATED(char *get_centroid_struct_pl(int length,
double *dist,
vrna_plist_t *pl));
DEPRECATED(char *get_centroid_struct_pr(int length,
double *dist,
FLT_OR_DBL *pr));
#endif
#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:390
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.