bpp-phyl3  3.0.0
bpp::ProcessComputationEdge Class Reference

#include <Bpp/Phyl/Likelihood/ProcessComputationTree.h>

+ Inheritance diagram for bpp::ProcessComputationEdge:
+ Collaboration diagram for bpp::ProcessComputationEdge:

Public Member Functions

 ProcessComputationEdge (std::shared_ptr< const BranchModelInterface > model, uint nmodel, uint speciesIndex, bool useProb=false, const std::vector< uint > &vNb=Vuint(0))
 
 ProcessComputationEdge (const ProcessComputationEdge &edge)
 
std::shared_ptr< const BranchModelInterfacegetModel () const
 
uint getModelNumber () const
 
uint getSpeciesIndex () const
 
const std::vector< uint > & subModelNumbers () const
 
bool useProb () const
 

Private Attributes

std::shared_ptr< const BranchModelInterfacemodel_
 Model carried by the branch. More...
 
uint nmodel_
 Number of the model carried by the branch. More...
 
std::vector< uint > vSubNb_
 numbers of the submodels used, if any. More...
 
bool useProb_
 use the probability associated to the edge in case of mixture. If true, the probability is used and not the transition probabilities. More...
 
const uint speciesIndex_
 the index of the species in the phyloTree matching this node. More...
 

Detailed Description

Definition at line 75 of file ProcessComputationTree.h.

Constructor & Destructor Documentation

◆ ProcessComputationEdge() [1/2]

bpp::ProcessComputationEdge::ProcessComputationEdge ( std::shared_ptr< const BranchModelInterface model,
uint  nmodel,
uint  speciesIndex,
bool  useProb = false,
const std::vector< uint > &  vNb = Vuint(0) 
)
inline

Definition at line 109 of file ProcessComputationTree.h.

◆ ProcessComputationEdge() [2/2]

bpp::ProcessComputationEdge::ProcessComputationEdge ( const ProcessComputationEdge edge)
inline

Definition at line 122 of file ProcessComputationTree.h.

Member Function Documentation

◆ getModel()

std::shared_ptr<const BranchModelInterface> bpp::ProcessComputationEdge::getModel ( ) const
inline

Definition at line 130 of file ProcessComputationTree.h.

References model_.

◆ getModelNumber()

uint bpp::ProcessComputationEdge::getModelNumber ( ) const
inline

Definition at line 135 of file ProcessComputationTree.h.

References nmodel_.

◆ getSpeciesIndex()

uint bpp::ProcessComputationEdge::getSpeciesIndex ( ) const
inline

Definition at line 140 of file ProcessComputationTree.h.

References speciesIndex_.

◆ subModelNumbers()

const std::vector<uint>& bpp::ProcessComputationEdge::subModelNumbers ( ) const
inline

Definition at line 145 of file ProcessComputationTree.h.

References vSubNb_.

◆ useProb()

bool bpp::ProcessComputationEdge::useProb ( ) const
inline

Definition at line 150 of file ProcessComputationTree.h.

References useProb_.

Member Data Documentation

◆ model_

std::shared_ptr<const BranchModelInterface> bpp::ProcessComputationEdge::model_
private

Model carried by the branch.

Definition at line 81 of file ProcessComputationTree.h.

Referenced by getModel().

◆ nmodel_

uint bpp::ProcessComputationEdge::nmodel_
private

Number of the model carried by the branch.

Definition at line 86 of file ProcessComputationTree.h.

Referenced by getModelNumber().

◆ speciesIndex_

const uint bpp::ProcessComputationEdge::speciesIndex_
private

the index of the species in the phyloTree matching this node.

Definition at line 106 of file ProcessComputationTree.h.

Referenced by getSpeciesIndex().

◆ useProb_

bool bpp::ProcessComputationEdge::useProb_
private

use the probability associated to the edge in case of mixture. If true, the probability is used and not the transition probabilities.

Definition at line 101 of file ProcessComputationTree.h.

Referenced by useProb().

◆ vSubNb_

std::vector<uint> bpp::ProcessComputationEdge::vSubNb_
private

numbers of the submodels used, if any.

In practice, only vectors of size <=1 are implemented (ie individual submodels), to be fixed later.

Definition at line 94 of file ProcessComputationTree.h.

Referenced by subModelNumbers().


The documentation for this class was generated from the following file: