bpp-phyl3
3.0.0
|
Map the states of a given alphabet which have a model state. More...
#include <Bpp/Phyl/Model/StateMap.h>
Public Member Functions | |
virtual | ~StateMapInterface () |
virtual StateMapInterface * | clone () const override=0 |
virtual const Alphabet & | alphabet () const =0 |
virtual std::shared_ptr< const Alphabet > | getAlphabet () const =0 |
virtual size_t | getNumberOfModelStates () const =0 |
virtual std::string | getStateDescription (size_t index) const =0 |
virtual const std::vector< int > & | getAlphabetStates () const =0 |
virtual std::string | getAlphabetStateAsChar (size_t index) const =0 |
virtual int | getAlphabetStateAsInt (size_t index) const =0 |
virtual std::vector< size_t > | getModelStates (const std::string &code) const =0 |
virtual std::vector< size_t > | getModelStates (int code) const =0 |
virtual bool | operator== (const StateMapInterface &sm) const =0 |
Comparison operator==. More... | |
virtual bool | operator!= (const StateMapInterface &sm) const =0 |
Comparison operator!=. More... | |
Map the states of a given alphabet which have a model state.
Definition at line 23 of file StateMap.h.
|
inlinevirtual |
Definition at line 27 of file StateMap.h.
|
pure virtual |
Implemented in bpp::AbstractStateMap.
Referenced by bpp::AbstractStateMap::operator!=(), bpp::AbstractStateMap::operator==(), bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister(), bpp::AAInteriorSubstitutionRegister::updateMatrix_(), and bpp::AAExteriorSubstitutionRegister::updateMatrix_().
|
overridepure virtual |
Implements bpp::Clonable.
Implemented in bpp::MarkovModulatedStateMap, and bpp::CanonicalStateMap.
|
pure virtual |
Implemented in bpp::AbstractStateMap.
Referenced by bpp::CanonicalStateMap::CanonicalStateMap(), bpp::AbstractSubstitutionProcess::getAlphabet(), bpp::LikelihoodCalculationOnABranch::getAlphabet(), and bpp::SingleProcessPhyloLikelihood::getAlphabet().
|
pure virtual |
index | The model state. |
Implemented in bpp::AbstractStateMap.
|
pure virtual |
index | The model state. |
Implemented in bpp::AbstractStateMap.
Referenced by bpp::CanonicalStateMap::CanonicalStateMap(), bpp::GCSynonymousSubstitutionRegister::getType(), bpp::GCPositionSubstitutionRegister::getType(), bpp::TsTvSubstitutionRegister::getType(), bpp::SWSubstitutionRegister::getType(), bpp::DnDsSubstitutionRegister::getType(), bpp::KrKcSubstitutionRegister::getType(), bpp::MarkovModulatedStateMap::MarkovModulatedStateMap(), and bpp::FromModelFrequencySet::setFrequencies().
|
pure virtual |
Implemented in bpp::AbstractStateMap.
Referenced by bpp::AbstractStateMap::operator!=(), and bpp::AbstractStateMap::operator==().
|
pure virtual |
code | The character code of the alphabet state to check. |
Implemented in bpp::AbstractStateMap.
Referenced by bpp::CategorySubstitutionRegister::setAlphabetCategories().
|
pure virtual |
code | The int code of the alphabet state to check. |
Implemented in bpp::AbstractStateMap.
|
pure virtual |
Implemented in bpp::AbstractStateMap.
Referenced by bpp::CanonicalStateMap::CanonicalStateMap(), bpp::ComprehensiveSubstitutionRegister::ComprehensiveSubstitutionRegister(), bpp::FixedFrequencySet::FixedFrequencySet(), bpp::FullFrequencySet::FullFrequencySet(), bpp::AbstractSubstitutionProcess::getNumberOfStates(), bpp::RegisterRatesSubstitutionModel::getNumberOfStates(), bpp::LikelihoodCalculationOnABranch::LikelihoodCalculationOnABranch(), bpp::LikelihoodCalculationSingleProcess::makeRootFreqs_(), bpp::MarkovModulatedStateMap::MarkovModulatedStateMap(), bpp::CategorySubstitutionRegister::setModelCategories(), bpp::AAInteriorSubstitutionRegister::updateMatrix_(), and bpp::AAExteriorSubstitutionRegister::updateMatrix_().
|
pure virtual |
index | The state index. |
Implemented in bpp::MarkovModulatedStateMap, and bpp::CanonicalStateMap.
Referenced by bpp::CategorySubstitutionRegister::setModelCategories().
|
pure virtual |
Comparison operator!=.
Two StateMaps are not identical if they do not share the same alphabet or states.
Implemented in bpp::AbstractStateMap.
|
pure virtual |
Comparison operator==.
Two StateMaps are identical if they share the same alphabet and states.
Implemented in bpp::AbstractStateMap.