RNAlib-2.5.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
7
8#ifdef VRNA_WARN_DEPRECATED
9# if defined(__clang__)
10# define DEPRECATED(func, msg) func __attribute__ ((deprecated("", msg)))
11# elif defined(__GNUC__)
12# define DEPRECATED(func, msg) func __attribute__ ((deprecated(msg)))
13# else
14# define DEPRECATED(func, msg) func
15# endif
16#else
17# define DEPRECATED(func, msg) func
18#endif
19
39char *
41 double *dist);
42
43
60char *
62 double *dist,
63 vrna_ep_t *pl);
64
65
82char *
84 double *dist,
85 FLT_OR_DBL *probs);
86
87
88#ifndef VRNA_DISABLE_BACKWARD_COMPATIBILITY
89
95DEPRECATED(char *get_centroid_struct_pl(int length,
96 double *dist,
97 vrna_ep_t *pl),
98 "Use vrna_centroid_from_plist() instead");
99
105DEPRECATED(char *get_centroid_struct_pr(int length,
106 double *dist,
107 FLT_OR_DBL *pr),
108 "Use vrna_centroid_from_probs() instead");
109
110#endif
111
112#endif
char * get_centroid_struct_pr(int length, double *dist, FLT_OR_DBL *pr)
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.
Various data structures and pre-processor macros.
The Basic Fold Compound API.
FLT_OR_DBL * pr
A pointer to the base pair probability matrix.
char * vrna_centroid(vrna_fold_compound_t *vc, double *dist)
Get the centroid structure of the ensemble.
char * vrna_centroid_from_plist(int length, double *dist, vrna_ep_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.
double FLT_OR_DBL
Typename for floating point number in partition function computations.
Definition: basic.h:43
The most basic data structure required by many functions throughout the RNAlib.
Definition: fold_compound.h:148
Data structure representing a single entry of an element probability list (e.g. list of pair probabil...
Definition: structures.h:482
Various utility- and helper-functions for secondary structure parsing, converting,...