1 #ifndef VITERBI_H_A08989A1_B4B4_461C_B863_A1AE2FE9BD98
2 #define VITERBI_H_A08989A1_B4B4_461C_B863_A1AE2FE9BD98
11 void compute_viterbis(
pCafeNode node,
int k,
double *factors,
int rootfamilysize_start,
int rootfamilysize_end,
int familysize_start,
int familysize_end);
57 void clear(
int nnodes);
78 std::vector<std::vector<double> >*
pCD;
pCafeFamily pfamily
Definition: viterbi.h:71
std::vector< double > averageExpansion
Definition: viterbi.h:52
double pvalue
Definition: viterbi.h:76
void set_node_familysize(pCafeTree tree, pCafeFamilyItem pItem)
Definition: viterbi.cpp:505
void viterbi_family_print(pCafeTree pcafe, pCafeFamily pfamily, int idx)
Definition: viterbi.cpp:563
int decrease
Definition: viterbi.h:28
double ** cutPvalues
Definition: viterbi.h:53
std::pair< int, pCafeFamilyItem > NodeFamilyKey
Definition: viterbi.h:44
int num_random_samples
Definition: viterbi.h:75
int num_threads
Definition: viterbi.h:73
void viterbi_parameters_init(viterbi_parameters *viterbi, int nnodes, int nrows)
Definition: viterbi.cpp:21
std::map< NodeFamilyKey, double > viterbiPvalues
Definition: viterbi.h:49
void cafe_viterbi(Globals &globals, viterbi_parameters &viterbi, std::vector< std::vector< double > > *pCD)
Definition: viterbi.cpp:141
int remain
Definition: viterbi.h:27
std::vector< std::vector< double > > * pCD
Definition: viterbi.h:78
std::vector< change > expandRemainDecrease
Definition: viterbi.h:41
int expand
Definition: viterbi.h:26
std::map< NodeFamilyKey, int > viterbiNodeFamilysizes
Definition: viterbi.h:46
viterbi_parameters * viterbi
Definition: viterbi.h:74
int from
Definition: viterbi.h:79
change()
Definition: viterbi.h:22
int num_nodes
Definition: viterbi.h:35
change(int e, int r, int d)
Definition: viterbi.h:18
void viterbi_sum_probabilities(viterbi_parameters *viterbi, pCafeTree pcafe, pCafeFamilyItem pitem)
Definition: viterbi.cpp:44
Represents a single gene family and the number of members of that family that exist in each species...
Definition: cafe.h:11
void viterbi_set_max_pvalue(viterbi_parameters *viterbi, int index, const std::vector< double > &values)
Definition: viterbi.cpp:32
double * maximumPvalues
Definition: viterbi.h:51
pCafeTree pcafe
Definition: viterbi.h:72
int num_rows
Definition: viterbi.h:38
void clear(int nnodes)
Definition: viterbi.cpp:542
Structure representing a matrix of values of family sizes.
Definition: family.h:88
void * __cafe_viterbi_thread_func(void *ptr)
Definition: viterbi.cpp:120
void compute_viterbis(pCafeNode node, int k, double *factors, int rootfamilysize_start, int rootfamilysize_end, int familysize_start, int familysize_end)
Definition: cafe_tree.c:257
void compute_size_deltas(pTree ptree, pCafeFamilyItem pitem)
Definition: viterbi.cpp:515