|
bpp-phyl
2.1.0
|
The SubstitutionRegister interface. More...
#include <Bpp/Phyl/Mapping/SubstitutionRegister.h>
Inheritance diagram for bpp::SubstitutionRegister:
Collaboration diagram for bpp::SubstitutionRegister:Public Member Functions | |
| SubstitutionRegister () | |
| virtual | ~SubstitutionRegister () |
| virtual SubstitutionRegister * | clone () const =0 |
| virtual const Alphabet * | getAlphabet () const =0 |
| virtual size_t | getNumberOfSubstitutionTypes () const =0 |
| virtual size_t | getType (int fromState, int toState) const =0 |
| Get the substitution type far a given pair of states. | |
| virtual std::string | getTypeName (size_t type) const =0 |
| Get the name of a given substitution type. | |
The SubstitutionRegister interface.
Substitution registers are simple classes that define categories of substitutions, and assign them an index.
Definition at line 63 of file SubstitutionRegister.h.
| bpp::SubstitutionRegister::SubstitutionRegister | ( | ) | [inline] |
Definition at line 67 of file SubstitutionRegister.h.
| virtual bpp::SubstitutionRegister::~SubstitutionRegister | ( | ) | [inline, virtual] |
Definition at line 68 of file SubstitutionRegister.h.
| virtual SubstitutionRegister* bpp::SubstitutionRegister::clone | ( | ) | const [pure virtual] |
Implements bpp::Clonable.
Implemented in bpp::GCSynonymousSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::GCSubstitutionRegister, bpp::ComprehensiveSubstitutionRegister, and bpp::TotalSubstitutionRegister.
Referenced by bpp::AbstractSubstitutionCount::operator=().
| virtual const Alphabet* bpp::SubstitutionRegister::getAlphabet | ( | ) | const [pure virtual] |
Implemented in bpp::AbstractSubstitutionRegister.
Referenced by bpp::DecompositionSubstitutionCount::DecompositionSubstitutionCount(), bpp::NaiveSubstitutionCount::getAllNumbersOfSubstitutions(), bpp::SubstitutionCount::getAlphabet(), bpp::SubstitutionCount::getNumberOfStates(), bpp::LabelSubstitutionCount::LabelSubstitutionCount(), bpp::UniformizationSubstitutionCount::setSubstitutionModel(), bpp::DecompositionSubstitutionCount::setSubstitutionModel(), bpp::UniformizationSubstitutionCount::substitutionRegisterHasChanged(), bpp::DecompositionSubstitutionCount::substitutionRegisterHasChanged(), bpp::UniformizationSubstitutionCount::UniformizationSubstitutionCount(), bpp::UniformizationSubstitutionCount::weightsHaveChanged(), and bpp::DecompositionSubstitutionCount::weightsHaveChanged().
| virtual size_t bpp::SubstitutionRegister::getNumberOfSubstitutionTypes | ( | ) | const [pure virtual] |
Implemented in bpp::GCSynonymousSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::TotalSubstitutionRegister, and bpp::CategorySubstitutionRegister.
Referenced by bpp::UniformizationSubstitutionCount::computeCounts_(), bpp::DecompositionSubstitutionCount::computeCounts_(), bpp::DecompositionSubstitutionCount::computeProducts_(), bpp::MutationPath::getEventCounts(), bpp::SubstitutionCount::getNumberOfSubstitutionTypes(), bpp::SiteSimulationResult::getSubstitutionVector(), bpp::UniformizationSubstitutionCount::initBMatrices_(), bpp::DecompositionSubstitutionCount::initBMatrices_(), bpp::UniformizationSubstitutionCount::resetBMatrices_(), and bpp::DecompositionSubstitutionCount::resetBMatrices_().
| virtual size_t bpp::SubstitutionRegister::getType | ( | int | fromState, |
| int | toState | ||
| ) | const [pure virtual] |
Get the substitution type far a given pair of states.
| fromState | Initial state (should be a state supported by the specified alphabet). |
| toState | Final state (should be a state supported by the specified alphabet). |
Implemented in bpp::GCSynonymousSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::TotalSubstitutionRegister, and bpp::CategorySubstitutionRegister.
Referenced by bpp::UniformizationSubstitutionCount::fillBMatrices_(), bpp::DecompositionSubstitutionCount::fillBMatrices_(), bpp::NaiveSubstitutionCount::getAllNumbersOfSubstitutions(), bpp::MutationPath::getEventCounts(), and bpp::NaiveSubstitutionCount::getNumberOfSubstitutions().
| virtual std::string bpp::SubstitutionRegister::getTypeName | ( | size_t | type | ) | const [pure virtual] |
Get the name of a given substitution type.
This method is only used for user-friendlyness purposes, not computational goal. I can therefore be left unimplemented in some cases.
| type | Index of the substitution (should be an size_t contained in the register). |
Implemented in bpp::GCSynonymousSubstitutionRegister, bpp::DnDsSubstitutionRegister, bpp::TsTvSubstitutionRegister, bpp::TotalSubstitutionRegister, and bpp::CategorySubstitutionRegister.