CAFE
Computational Analysis of gene Family Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pvalue.h
Go to the documentation of this file.
1 #ifndef PVALUE_H_B9D3D490_57EB_4E47_8057_0F8D7098FAA4
2 #define PVALUE_H_B9D3D490_57EB_4E47_8057_0F8D7098FAA4
3 
4 #include <iosfwd>
5 #include <vector>
6 
7 extern "C" {
8 #include <family.h>
9 }
10 
12 void print_pvalues(std::ostream& ost, pCafeTree pcafe, int max, int num_random_samples, pBirthDeathCacheArray cache);
13 void read_pvalues(std::istream& ist, int count);
14 void write_pvalues(std::ostream& ost, pArrayList values, int count);
15 void pvalues_for_family(pCafeTree pTree, pCafeFamily family, family_size_range *range, int numthreads, int num_random_samples, int index);
16 void cafe_tree_p_values(pCafeTree pcafe, std::vector<double>& pvalues, std::vector<std::vector<double> >& pconddist, int cdlen);
17 
19 {
20 public:
21  static std::vector<std::vector<double> > matrix;
22  static void reset(pCafeTree pTree, family_size_range *range, int numthreads, int num_random_samples);
23  static pArrayList to_arraylist();
24 };
25 
26 #endif
static void reset(pCafeTree pTree, family_size_range *range, int numthreads, int num_random_samples)
Definition: pvalue.cpp:122
void print_pvalues(std::ostream &ost, pCafeTree pcafe, int max, int num_random_samples, pBirthDeathCacheArray cache)
Definition: pvalue.cpp:46
void cafe_tree_p_values(pCafeTree pcafe, std::vector< double > &pvalues, std::vector< std::vector< double > > &pconddist, int cdlen)
Definition: pvalue.cpp:135
void read_pvalues(std::istream &ist, int count)
Definition: pvalue.cpp:80
Definition: family.h:10
Definition: pvalue.h:18
void write_pvalues(std::ostream &ost, pArrayList values, int count)
Definition: pvalue.cpp:63
struct chooseln_cache cache
A cache of values of chooseln.
Definition: birthdeath.c:32
static pArrayList to_arraylist()
Definition: pvalue.cpp:127
Definition: utils.h:12
Definition: tree.h:11
A cache of values of family size transition probabilities.
Definition: birthdeath.h:39
void check_cache_and_compute_likelihoods(pCafeTree pTree, int max, pBirthDeathCacheArray cache)
Definition: pvalue.cpp:16
Structure representing a matrix of values of family sizes.
Definition: family.h:88
Definition: family.h:17
void pvalues_for_family(pCafeTree pTree, pCafeFamily family, family_size_range *range, int numthreads, int num_random_samples, int index)
Definition: pvalue.cpp:95
static std::vector< std::vector< double > > matrix
Definition: pvalue.h:21