bpp-phyl
2.2.0
|
General interface for storing mapping data. More...
#include <Bpp/Phyl/Mapping/SubstitutionMapping.h>
Public Member Functions | |
SubstitutionMapping () | |
virtual | ~SubstitutionMapping () |
SubstitutionMapping * | clone () const =0 |
virtual size_t | getNumberOfSubstitutionTypes () const =0 |
virtual double & | operator() (size_t nodeIndex, size_t siteIndex, size_t type)=0 |
virtual const double & | operator() (size_t nodeIndex, size_t siteIndex, size_t type) const =0 |
virtual const Tree & | getTree () const =0 |
virtual bool | isEmpty () const =0 |
virtual size_t | getNumberOfSites () const =0 |
virtual size_t | getNumberOfBranches () const =0 |
virtual int | getSitePosition (size_t index) const =0 |
virtual std::vector< double > | getBranchLengths () const =0 |
virtual size_t | getNodeIndex (int nodeId) const =0 throw (NodeNotFoundException) |
virtual void | setSitePosition (size_t index, int position)=0 |
Set the position of a given site. More... | |
General interface for storing mapping data.
There are several kinds of mapping:
Since only probabilistic substitution mapping is implemented for now, the basal interface only contains a few methods. More methods are expected to be added later.
Definition at line 65 of file SubstitutionMapping.h.
|
inline |
Definition at line 70 of file SubstitutionMapping.h.
|
inlinevirtual |
Definition at line 71 of file SubstitutionMapping.h.
|
pure virtual |
Implements bpp::Mapping.
Implemented in bpp::AbstractSubstitutionMapping, and bpp::ProbabilisticSubstitutionMapping.
|
pure virtualinherited |
Implemented in bpp::AbstractMapping.
|
pure virtualinherited |
nodeId | An id of the node to look for in the map. |
Implemented in bpp::AbstractMapping.
|
pure virtualinherited |
Implemented in bpp::AbstractMapping.
Referenced by bpp::SubstitutionMappingTools::computeNormForSite(), bpp::RewardMappingTools::computeSumForSite(), bpp::SubstitutionMappingTools::computeSumForSite(), and bpp::SubstitutionMappingTools::computeTotalSubstitutionVectorForSite().
|
pure virtualinherited |
Implemented in bpp::AbstractMapping.
Referenced by bpp::RewardMappingTools::computeSumForBranch(), and bpp::SubstitutionMappingTools::computeSumForBranch().
|
pure virtual |
Implemented in bpp::ProbabilisticSubstitutionMapping.
Referenced by bpp::SubstitutionMappingTools::computeNormForSite(), bpp::SubstitutionMappingTools::computeSumForBranch(), bpp::SubstitutionMappingTools::computeSumForSite(), and bpp::SubstitutionMappingTools::computeTotalSubstitutionVectorForSite().
|
pure virtualinherited |
index | The site index. |
Implemented in bpp::AbstractMapping.
|
pure virtualinherited |
Implemented in bpp::AbstractMapping.
|
pure virtualinherited |
Implemented in bpp::AbstractMapping.
|
pure virtual |
Implemented in bpp::ProbabilisticSubstitutionMapping.
|
pure virtual |
Implemented in bpp::ProbabilisticSubstitutionMapping.
|
pure virtualinherited |
Set the position of a given site.
index | The site index. |
position | The position of the site. |
Implemented in bpp::AbstractMapping.