bpp-phyl
2.2.0
|
General interface for storing mapping data. More...
#include <Bpp/Phyl/Mapping/Mapping.h>
Public Member Functions | |
Mapping () | |
virtual | ~Mapping () |
Mapping * | clone () 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... | |
|
pure virtual |
|
pure virtual |
Implemented in bpp::AbstractMapping.
|
pure virtual |
nodeId | An id of the node to look for in the map. |
Implemented in bpp::AbstractMapping.
|
pure virtual |
Implemented in bpp::AbstractMapping.
Referenced by bpp::SubstitutionMappingTools::computeNormForSite(), bpp::RewardMappingTools::computeSumForSite(), bpp::SubstitutionMappingTools::computeSumForSite(), and bpp::SubstitutionMappingTools::computeTotalSubstitutionVectorForSite().
|
pure virtual |
Implemented in bpp::AbstractMapping.
Referenced by bpp::RewardMappingTools::computeSumForBranch(), and bpp::SubstitutionMappingTools::computeSumForBranch().
|
pure virtual |
index | The site index. |
Implemented in bpp::AbstractMapping.
|
pure virtual |
Implemented in bpp::AbstractMapping.
|
pure virtual |
Implemented in bpp::AbstractMapping.
|
pure virtual |
Set the position of a given site.
index | The site index. |
position | The position of the site. |
Implemented in bpp::AbstractMapping.