CAFE
Computational Analysis of gene Family Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
branch_cutting.cpp File Reference
#include <sstream>
#include <utility>
#include <algorithm>
#include <iostream>
#include "branch_cutting.h"
#include "conditional_distribution.h"
#include "viterbi.h"
#include "Globals.h"
#include "pvalue.h"
#include <family.h>
#include "cafe.h"

Data Structures

struct  BranchCuttingParam
 

Typedefs

typedef BranchCuttingParampBranchCuttingParam
 

Functions

double ** p_values_of_two_trees (pCafeTree pcafe1, pCafeTree pcafe2, double **pvalues, const std::pair< matrix, matrix > &cond_dist, int cdlen)
 
void set_size_for_split (pCafeFamily pcf, int idx, pCafeTree pcafe)
 
pArrayList to_arraylist (matrix &v)
 
void compute_cutpvalues (pCafeTree pparamcafe, pCafeFamily family, int num_random_samples, int b, int range_start, int range_stop, viterbi_parameters &viterbi, double pvalue, std::vector< double > &p1, double **p2, CutBranch &cb)
 
void * __cafe_branch_cutting_thread_func (void *ptr)
 
std::ostream & operator<< (std::ostream &os, CafeTree &tree)
 
void cut_branch (CutBranch &cb, pTree ptree, pCafeTree paramCafe, family_size_range &range, int num_threads, int num_random_samples, int b, std::ostream &ost)
 
void cafe_branch_cutting (Globals &globals, viterbi_parameters &viterbi)
 

Typedef Documentation

Function Documentation

void* __cafe_branch_cutting_thread_func ( void *  ptr)
void cafe_branch_cutting ( Globals globals,
viterbi_parameters viterbi 
)
void compute_cutpvalues ( pCafeTree  pparamcafe,
pCafeFamily  family,
int  num_random_samples,
int  b,
int  range_start,
int  range_stop,
viterbi_parameters viterbi,
double  pvalue,
std::vector< double > &  p1,
double **  p2,
CutBranch cb 
)
void cut_branch ( CutBranch cb,
pTree  ptree,
pCafeTree  paramCafe,
family_size_range range,
int  num_threads,
int  num_random_samples,
int  b,
std::ostream &  ost 
)
std::ostream& operator<< ( std::ostream &  os,
CafeTree tree 
)
double** p_values_of_two_trees ( pCafeTree  pcafe1,
pCafeTree  pcafe2,
double **  pvalues,
const std::pair< matrix, matrix > &  cond_dist,
int  cdlen 
)
void set_size_for_split ( pCafeFamily  pcf,
int  idx,
pCafeTree  pcafe 
)
pArrayList to_arraylist ( matrix v)