|
bpp-phyl
2.2.0
|
This class implements a state map for Markov modulated models. More...
#include <Bpp/Phyl/Model/StateMap.h>
Inheritance diagram for bpp::MarkovModulatedStateMap:
Collaboration diagram for bpp::MarkovModulatedStateMap:Public Member Functions | |
| MarkovModulatedStateMap (const StateMap &unitMap, unsigned int nbClasses) | |
| virtual MarkovModulatedStateMap * | clone () const |
| virtual const Alphabet * | getAlphabet () const |
| virtual size_t | getNumberOfModelStates () const |
| virtual const std::vector< int > & | getAlphabetStates () const |
| virtual int | getAlphabetStateAsInt (size_t index) const |
| virtual std::string | getAlphabetStateAsChar (size_t index) const |
| virtual std::vector< size_t > | getModelStates (int code) const |
| virtual std::vector< size_t > | getModelStates (const std::string &code) const |
Protected Attributes | |
| const Alphabet * | alphabet_ |
| std::vector< int > | states_ |
This class implements a state map for Markov modulated models.
For nucleotides with two classes, the underlying states are for instance: A (0), C (1), G (2), T/U (3), A (4), C (5), G (6), T/U (7).
Definition at line 185 of file StateMap.h.
| MarkovModulatedStateMap::MarkovModulatedStateMap | ( | const StateMap & | unitMap, |
| unsigned int | nbClasses | ||
| ) |
Definition at line 64 of file StateMap.cpp.
References bpp::StateMap::getAlphabetStateAsInt(), bpp::StateMap::getNumberOfModelStates(), and bpp::AbstractStateMap::states_.
Referenced by clone().
|
inlinevirtual |
Implements bpp::StateMap.
Definition at line 190 of file StateMap.h.
References MarkovModulatedStateMap().
|
inlinevirtualinherited |
Implements bpp::StateMap.
Definition at line 141 of file StateMap.h.
References bpp::AbstractStateMap::alphabet_.
|
inlinevirtualinherited |
| index | The model state. |
Implements bpp::StateMap.
Definition at line 145 of file StateMap.h.
References bpp::AbstractStateMap::alphabet_, and bpp::AbstractStateMap::states_.
Referenced by bpp::MarkovModulatedSubstitutionModel::getAlphabetStateAsChar().
|
inlinevirtualinherited |
| index | The model state. |
Implements bpp::StateMap.
Definition at line 144 of file StateMap.h.
References bpp::AbstractStateMap::states_.
Referenced by bpp::MarkovModulatedSubstitutionModel::getAlphabetStateAsInt().
|
inlinevirtualinherited |
Implements bpp::StateMap.
Definition at line 143 of file StateMap.h.
References bpp::AbstractStateMap::states_.
Referenced by bpp::MarkovModulatedSubstitutionModel::getAlphabetStates().
|
inlinevirtualinherited |
| code | The int code of the alphabet state to check. |
Implements bpp::StateMap.
Definition at line 146 of file StateMap.h.
References bpp::AbstractStateMap::states_.
Referenced by bpp::MarkovModulatedSubstitutionModel::getModelStates().
|
inlinevirtualinherited |
| code | The character code of the alphabet state to check. |
Implements bpp::StateMap.
Definition at line 149 of file StateMap.h.
References bpp::AbstractStateMap::alphabet_, and bpp::AbstractStateMap::states_.
|
inlinevirtualinherited |
Implements bpp::StateMap.
Definition at line 142 of file StateMap.h.
References bpp::AbstractStateMap::states_.
|
protectedinherited |
Definition at line 119 of file StateMap.h.
Referenced by bpp::AbstractStateMap::getAlphabet(), bpp::AbstractStateMap::getAlphabetStateAsChar(), bpp::AbstractStateMap::getModelStates(), and bpp::AbstractStateMap::operator=().
|
protectedinherited |
Definition at line 120 of file StateMap.h.
Referenced by bpp::CanonicalStateMap::CanonicalStateMap(), bpp::AbstractStateMap::getAlphabetStateAsChar(), bpp::AbstractStateMap::getAlphabetStateAsInt(), bpp::AbstractStateMap::getAlphabetStates(), bpp::AbstractStateMap::getModelStates(), bpp::AbstractStateMap::getNumberOfModelStates(), MarkovModulatedStateMap(), and bpp::AbstractStateMap::operator=().