bpp-phyl3  3.0.0
bpp::MixedSubstitutionModelSet::HyperNode Class Reference

#include <Bpp/Phyl/Legacy/Model/MixedSubstitutionModelSet.h>

+ Collaboration diagram for bpp::MixedSubstitutionModelSet::HyperNode:

Classes

class  Node
 

Public Member Functions

 HyperNode (std::shared_ptr< const MixedSubstitutionModelSet >)
 
 HyperNode (const HyperNode &)
 
HyperNodeoperator= (const HyperNode &)
 
 ~HyperNode ()
 
void setModel (size_t nM, const Vuint &vnS)
 sets submodel numbers in the nMth mixed model. Checks if all the numbers are valid. More...
 
void addToModel (size_t nM, const Vuint &vnS)
 adds submodel numbers to the nMth mixed model. Checks if all the numbers are valid. More...
 
HyperNodeoperator+= (const HyperNode &)
 Cumulates the Nodes of the given HyperNode into this one. More...
 
bool operator<= (const HyperNode &) const
 checks if this HyperNode is included in another one. More...
 
bool isComplete () const
 checks if this HyperNode includes at least a submodel of each mixed model More...
 
bool operator>= (const HyperNode &) const
 checks if this HyperNode includes another one. More...
 
bool intersects (const HyperNode &) const
 checks if this HyperNode intersects another one. More...
 
double getProbability () const
 returns the probability More...
 
void setProbability (double x)
 sets the probability More...
 
const NodegetNode (size_t i) const
 

Private Attributes

std::vector< NodevNumbers_
 
Vuint vUnused_
 the coordinates of the Nodes that are not used. More...
 
double proba_
 probability of this HyperNode. More...
 

Detailed Description

Definition at line 90 of file MixedSubstitutionModelSet.h.

Constructor & Destructor Documentation

◆ HyperNode() [1/2]

MixedSubstitutionModelSet::HyperNode::HyperNode ( std::shared_ptr< const MixedSubstitutionModelSet pMSMS)

Definition at line 274 of file MixedSubstitutionModelSet.cpp.

References vUnused_.

◆ HyperNode() [2/2]

MixedSubstitutionModelSet::HyperNode::HyperNode ( const HyperNode hn)

Definition at line 287 of file MixedSubstitutionModelSet.cpp.

◆ ~HyperNode()

bpp::MixedSubstitutionModelSet::HyperNode::~HyperNode ( )
inline

Definition at line 165 of file MixedSubstitutionModelSet.h.

Member Function Documentation

◆ addToModel()

void MixedSubstitutionModelSet::HyperNode::addToModel ( size_t  nM,
const Vuint vnS 
)

adds submodel numbers to the nMth mixed model. Checks if all the numbers are valid.

Parameters
nMnumber of the mixed model
vnSvector of numbers of the submodel

Definition at line 313 of file MixedSubstitutionModelSet.cpp.

◆ getNode()

◆ getProbability()

double bpp::MixedSubstitutionModelSet::HyperNode::getProbability ( ) const
inline

◆ intersects()

bool MixedSubstitutionModelSet::HyperNode::intersects ( const HyperNode hn) const

checks if this HyperNode intersects another one.

Definition at line 357 of file MixedSubstitutionModelSet.cpp.

References vNumbers_.

Referenced by bpp::MixedSubstitutionModelSet::hasExclusivePaths().

◆ isComplete()

bool MixedSubstitutionModelSet::HyperNode::isComplete ( ) const

checks if this HyperNode includes at least a submodel of each mixed model

Definition at line 329 of file MixedSubstitutionModelSet.cpp.

Referenced by bpp::LegacyPhylogeneticsApplicationTools::completeMixedSubstitutionModelSet().

◆ operator+=()

MixedSubstitutionModelSet::HyperNode & MixedSubstitutionModelSet::HyperNode::operator+= ( const HyperNode hn)

Cumulates the Nodes of the given HyperNode into this one.

Definition at line 373 of file MixedSubstitutionModelSet.cpp.

References vNumbers_.

◆ operator<=()

bool MixedSubstitutionModelSet::HyperNode::operator<= ( const HyperNode hn) const

checks if this HyperNode is included in another one.

Definition at line 346 of file MixedSubstitutionModelSet.cpp.

References vNumbers_.

◆ operator=()

MixedSubstitutionModelSet::HyperNode & MixedSubstitutionModelSet::HyperNode::operator= ( const HyperNode hn)

Definition at line 293 of file MixedSubstitutionModelSet.cpp.

References proba_, vNumbers_, and vUnused_.

◆ operator>=()

bool MixedSubstitutionModelSet::HyperNode::operator>= ( const HyperNode hn) const

checks if this HyperNode includes another one.

Definition at line 368 of file MixedSubstitutionModelSet.cpp.

◆ setModel()

void MixedSubstitutionModelSet::HyperNode::setModel ( size_t  nM,
const Vuint vnS 
)

sets submodel numbers in the nMth mixed model. Checks if all the numbers are valid.

Parameters
nMnumber of the mixed model
vnSvector of numbers of the submodel

Definition at line 321 of file MixedSubstitutionModelSet.cpp.

Referenced by bpp::RNonHomogeneousMixedTreeLikelihood::init().

◆ setProbability()

void bpp::MixedSubstitutionModelSet::HyperNode::setProbability ( double  x)
inline

Member Data Documentation

◆ proba_

double bpp::MixedSubstitutionModelSet::HyperNode::proba_
private

probability of this HyperNode.

Definition at line 159 of file MixedSubstitutionModelSet.h.

Referenced by getProbability(), operator=(), and setProbability().

◆ vNumbers_

std::vector<Node> bpp::MixedSubstitutionModelSet::HyperNode::vNumbers_
private

Definition at line 149 of file MixedSubstitutionModelSet.h.

Referenced by getNode(), intersects(), operator+=(), operator<=(), and operator=().

◆ vUnused_

Vuint bpp::MixedSubstitutionModelSet::HyperNode::vUnused_
private

the coordinates of the Nodes that are not used.

Definition at line 154 of file MixedSubstitutionModelSet.h.

Referenced by HyperNode(), and operator=().


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