bpp-phyl
2.2.0
|
Count all substitutions. More...
#include <Bpp/Phyl/Mapping/SubstitutionRegister.h>
Public Member Functions | |
TotalSubstitutionRegister (const SubstitutionModel *model) | |
TotalSubstitutionRegister * | clone () const |
size_t | getNumberOfSubstitutionTypes () const |
size_t | getType (size_t fromState, size_t toState) const |
Get the substitution type far a given pair of model states. More... | |
std::string | getTypeName (size_t type) const |
Get the name of a given substitution type. More... | |
const SubstitutionModel * | getSubstitutionModel () const |
const Alphabet * | getAlphabet () const |
Protected Attributes | |
const SubstitutionModel * | model_ |
Count all substitutions.
This register has only 1 substitution type, mapped as:
Definition at line 319 of file SubstitutionRegister.h.
|
inline |
Definition at line 323 of file SubstitutionRegister.h.
Referenced by clone().
|
inlinevirtual |
Implements bpp::SubstitutionRegister.
Definition at line 327 of file SubstitutionRegister.h.
References TotalSubstitutionRegister().
|
inlinevirtualinherited |
Implements bpp::SubstitutionRegister.
Definition at line 147 of file SubstitutionRegister.h.
References bpp::SubstitutionModel::getAlphabet(), and bpp::AbstractSubstitutionRegister::model_.
|
inlinevirtual |
Implements bpp::SubstitutionRegister.
Definition at line 330 of file SubstitutionRegister.h.
|
inlinevirtualinherited |
Implements bpp::SubstitutionRegister.
Definition at line 145 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::model_.
|
inlinevirtual |
Get the substitution type far a given pair of model 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). |
Implements bpp::SubstitutionRegister.
Definition at line 332 of file SubstitutionRegister.h.
|
inlinevirtual |
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). |
Implements bpp::SubstitutionRegister.
Definition at line 337 of file SubstitutionRegister.h.
|
protectedinherited |
Definition at line 125 of file SubstitutionRegister.h.
Referenced by bpp::AbstractSubstitutionRegister::getAlphabet(), bpp::CategorySubstitutionRegister::getCategory(), bpp::AbstractSubstitutionRegister::getSubstitutionModel(), bpp::CategorySubstitutionRegister::getType(), bpp::TsTvSubstitutionRegister::getType(), bpp::DnDsSubstitutionRegister::getType(), bpp::GCSynonymousSubstitutionRegister::getType(), bpp::AbstractSubstitutionRegister::operator=(), bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister(), and bpp::CategorySubstitutionRegister::setCategories().