#include <Bpp/Phyl/Mapping/StochasticMapping.h>
Definition at line 39 of file StochasticMapping.h.
◆ StochasticMapping() [1/2]
◆ ~StochasticMapping()
StochasticMapping::~StochasticMapping |
( |
| ) |
|
◆ StochasticMapping() [2/2]
◆ clone()
cloning function used by the copy constructor of ./Likelihood/JointLikelihoodFunction/h
Definition at line 95 of file StochasticMapping.h.
◆ ComputeConditionals()
void StochasticMapping::ComputeConditionals |
( |
| ) |
|
|
private |
◆ computeFractionals()
void StochasticMapping::computeFractionals |
( |
| ) |
|
|
private |
◆ computeStatesFrequencies()
void StochasticMapping::computeStatesFrequencies |
( |
VVDouble & |
ancestralStatesFreuquencies, |
|
|
vector< shared_ptr< PhyloTree >> & |
mappings |
|
) |
| |
|
private |
◆ generateAnalyticExpectedMapping()
shared_ptr< PhyloTree > StochasticMapping::generateAnalyticExpectedMapping |
( |
size_t |
divMethod = 0 | ) |
|
Creates a single expected (i.e, average) history based the rewards provided by the algorithm of Minin and Suchard (2008) the function assumes that there is only one site to simulate history for.
- Parameters
-
divMethod | The method used in the case that the son and father share the same state (either divide the wdelling time of the staed state by 2 for two transitions (method 0) or allocate the entire dwelling time to be adjacent to the son(method 1)) |
Definition at line 157 of file StochasticMapping.cpp.
References tree_.
◆ generateExpectedMapping()
shared_ptr< PhyloTree > StochasticMapping::generateExpectedMapping |
( |
std::vector< std::shared_ptr< PhyloTree >> & |
mappings, |
|
|
size_t |
divMethod = 0 |
|
) |
| |
Creates a single expected (i.e, average) history based on a given set of mappings steps. Correspond to Nielsen, Rasmus. "Mapping mutations on phylogenies." Systematic biology 51.5 (2002): 729-739.âÂÂ
the function assumes that there is only one site to simulate history
- Parameters
-
mappings | A vector of stochastic mappings to average |
divMethod | The method used in the case that the son and father share the same state (either divide the dwelling time of the staed state by 2 for two transitions (method 0) or allocate the entire dwelling time to be adjacent to the son(method 1)) |
Definition at line 93 of file StochasticMapping.cpp.
References tree_.
◆ generateStochasticMapping()
void StochasticMapping::generateStochasticMapping |
( |
std::vector< std::shared_ptr< PhyloTree >> & |
mappings | ) |
|
◆ getNodeState()
int StochasticMapping::getNodeState |
( |
const PhyloNode * |
node | ) |
const |
◆ giveNamesToInternalNodes()
void StochasticMapping::giveNamesToInternalNodes |
( |
PhyloTree & |
tree | ) |
|
|
private |
◆ sampleAncestrals()
void StochasticMapping::sampleAncestrals |
( |
shared_ptr< PhyloTree > |
mapping | ) |
|
|
private |
◆ sampleMutationsGivenAncestrals()
void StochasticMapping::sampleMutationsGivenAncestrals |
( |
shared_ptr< PhyloTree > |
mapping | ) |
|
|
private |
◆ sampleMutationsGivenAncestralsPerBranch()
void StochasticMapping::sampleMutationsGivenAncestralsPerBranch |
( |
PhyloNode * |
son, |
|
|
size_t |
maxIterNum = 10000 |
|
) |
| |
|
private |
◆ sampleState()
size_t StochasticMapping::sampleState |
( |
const VDouble & |
distibution | ) |
|
|
private |
◆ setExpectedAncestrals()
void StochasticMapping::setExpectedAncestrals |
( |
shared_ptr< PhyloTree > |
expectedMapping, |
|
|
VVDouble & |
posteriorProbabilities |
|
) |
| |
|
private |
◆ setLeafsStates()
void StochasticMapping::setLeafsStates |
( |
std::shared_ptr< PhyloTree > |
mapping | ) |
|
|
private |
◆ setNodeState()
void StochasticMapping::setNodeState |
( |
PhyloNode * |
node, |
|
|
size_t |
state |
|
) |
| |
|
private |
◆ updateBranchByDwellingTimes()
void StochasticMapping::updateBranchByDwellingTimes |
( |
PhyloNode * |
node, |
|
|
VDouble & |
dwellingTimes, |
|
|
VVDouble & |
posteriorProbabilities, |
|
|
size_t |
divMethod = 0 |
|
) |
| |
|
private |
◆ updateBranchMapping()
◆ ConditionalProbabilities_
VVVDouble bpp::StochasticMapping::ConditionalProbabilities_ |
|
protected |
◆ fractionalProbabilities_
VVDouble bpp::StochasticMapping::fractionalProbabilities_ |
|
protected |
◆ likelihood_
◆ nodesCounter_
size_t bpp::StochasticMapping::nodesCounter_ |
|
protected |
◆ numOfMappings_
size_t bpp::StochasticMapping::numOfMappings_ |
|
protected |
◆ tree_
std::shared_ptr<PhyloTree> bpp::StochasticMapping::tree_ |
|
protected |
The documentation for this class was generated from the following files: