bpp-phyl3
3.0.0
|
#include <Bpp/Phyl/Legacy/Model/MixedSubstitutionModelSet.h>
Classes | |
class | Node |
Public Member Functions | |
HyperNode (std::shared_ptr< const MixedSubstitutionModelSet >) | |
HyperNode (const HyperNode &) | |
HyperNode & | operator= (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... | |
HyperNode & | operator+= (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 Node & | getNode (size_t i) const |
Private Attributes | |
std::vector< Node > | vNumbers_ |
Vuint | vUnused_ |
the coordinates of the Nodes that are not used. More... | |
double | proba_ |
probability of this HyperNode. More... | |
Definition at line 90 of file MixedSubstitutionModelSet.h.
MixedSubstitutionModelSet::HyperNode::HyperNode | ( | std::shared_ptr< const MixedSubstitutionModelSet > | pMSMS | ) |
Definition at line 274 of file MixedSubstitutionModelSet.cpp.
References vUnused_.
MixedSubstitutionModelSet::HyperNode::HyperNode | ( | const HyperNode & | hn | ) |
Definition at line 287 of file MixedSubstitutionModelSet.cpp.
|
inline |
Definition at line 165 of file MixedSubstitutionModelSet.h.
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.
nM | number of the mixed model |
vnS | vector of numbers of the submodel |
Definition at line 313 of file MixedSubstitutionModelSet.cpp.
|
inline |
Definition at line 227 of file MixedSubstitutionModelSet.h.
References vNumbers_.
Referenced by bpp::MixedSubstitutionModelSet::complete(), bpp::MixedSubstitutionModelSet::computeHyperNodesProbabilities(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::MixedSubstitutionModelSet::getHyperNodeProbability(), and bpp::RNonHomogeneousMixedTreeLikelihood::init().
|
inline |
returns the probability
Definition at line 219 of file MixedSubstitutionModelSet.h.
References proba_.
Referenced by bpp::MixedSubstitutionModelSet::computeHyperNodesProbabilities(), and bpp::RNonHomogeneousMixedTreeLikelihood::getProbability().
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().
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().
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_.
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_.
MixedSubstitutionModelSet::HyperNode & MixedSubstitutionModelSet::HyperNode::operator= | ( | const HyperNode & | hn | ) |
Definition at line 293 of file MixedSubstitutionModelSet.cpp.
bool MixedSubstitutionModelSet::HyperNode::operator>= | ( | const HyperNode & | hn | ) | const |
checks if this HyperNode includes another one.
Definition at line 368 of file MixedSubstitutionModelSet.cpp.
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.
nM | number of the mixed model |
vnS | vector of numbers of the submodel |
Definition at line 321 of file MixedSubstitutionModelSet.cpp.
Referenced by bpp::RNonHomogeneousMixedTreeLikelihood::init().
|
inline |
sets the probability
Definition at line 225 of file MixedSubstitutionModelSet.h.
References proba_.
Referenced by bpp::MixedSubstitutionModelSet::computeHyperNodesProbabilities(), bpp::RNonHomogeneousMixedTreeLikelihood::init(), and bpp::RNonHomogeneousMixedTreeLikelihood::setProbability().
|
private |
probability of this HyperNode.
Definition at line 159 of file MixedSubstitutionModelSet.h.
Referenced by getProbability(), operator=(), and setProbability().
|
private |
Definition at line 149 of file MixedSubstitutionModelSet.h.
Referenced by getNode(), intersects(), operator+=(), operator<=(), and operator=().
|
private |
the coordinates of the Nodes that are not used.
Definition at line 154 of file MixedSubstitutionModelSet.h.
Referenced by HyperNode(), and operator=().