bpp-phyl3
3.0.0
|
Partial implementation of the substitution mapping interface. More...
#include <Bpp/Phyl/Mapping/SubstitutionMapping.h>
Public Member Functions | |
AbstractSubstitutionMapping () | |
AbstractSubstitutionMapping (const AbstractSubstitutionMapping &absm) | |
AbstractSubstitutionMapping * | clone () const =0 |
AbstractSubstitutionMapping & | operator= (const AbstractSubstitutionMapping &absm) |
virtual | ~AbstractSubstitutionMapping () |
size_t | getNumberOfSubstitutionTypes () const |
virtual void | setNumberOfSubstitutionTypes (size_t numberOfTypes) |
virtual double & | operator() (unsigned int branchId, size_t siteIndex, size_t type)=0 |
virtual const double & | operator() (unsigned int branchId, size_t siteIndex, size_t type) const =0 |
virtual size_t | getNumberOfSites () const =0 |
virtual const PhyloBranch & | getBranch (unsigned int branchId) const =0 |
virtual PhyloBranch & | getBranch (unsigned int branchId)=0 |
virtual size_t | getNumberOfBranches () const =0 |
virtual int | getSitePosition (size_t index) const =0 |
virtual void | setSitePosition (size_t index, int position)=0 |
Set the position of a given site. More... | |
int | getSitePosition (size_t index) const |
void | setSitePosition (size_t index, int position) |
Set the position of a given site. More... | |
size_t | getNumberOfSites () const |
virtual void | setNumberOfSites (size_t numberOfSites) |
Protected Attributes | |
std::vector< int > | sitesPositions_ |
size_t | nbSites_ |
Private Attributes | |
size_t | numberOfTypes_ |
Partial implementation of the substitution mapping interface.
This implementation copies the input tree in a TreeTemplate<Node> object.
Definition at line 55 of file SubstitutionMapping.h.
|
inline |
Definition at line 63 of file SubstitutionMapping.h.
|
inline |
Definition at line 65 of file SubstitutionMapping.h.
|
inlinevirtual |
Definition at line 78 of file SubstitutionMapping.h.
|
pure virtual |
Implements bpp::SubstitutionMapping.
Implemented in bpp::ProbabilisticSubstitutionMapping.
|
pure virtualinherited |
Implemented in bpp::ProbabilisticSubstitutionMapping, and bpp::ProbabilisticRewardMapping.
|
pure virtualinherited |
Implemented in bpp::ProbabilisticSubstitutionMapping, and bpp::ProbabilisticRewardMapping.
|
pure virtualinherited |
Implemented in bpp::ProbabilisticSubstitutionMapping, and bpp::ProbabilisticRewardMapping.
|
inlinevirtualinherited |
Implements bpp::MappingInterface.
Definition at line 111 of file Mapping.h.
References bpp::AbstractMapping::nbSites_.
Referenced by bpp::RewardMappingTools::computeSumForBranch(), bpp::SubstitutionMappingTools::getCountsForBranchPerType(), bpp::SubstitutionMappingTools::getCountsPerSitePerBranch(), bpp::SubstitutionMappingTools::getCountsPerSitePerBranchPerType(), bpp::SubstitutionMappingTools::getCountsPerSitePerType(), bpp::SubstitutionMappingTools::getTreeForType(), bpp::RewardMappingTools::writeToStream(), and bpp::SubstitutionMappingTools::writeToStream().
|
pure virtualinherited |
Implemented in bpp::AbstractMapping.
|
inlinevirtual |
Implements bpp::SubstitutionMapping.
Definition at line 80 of file SubstitutionMapping.h.
References numberOfTypes_.
Referenced by bpp::SubstitutionMappingTools::computeNormalizedCounts(), bpp::SubstitutionMappingTools::getCountsForBranchPerType(), bpp::SubstitutionMappingTools::getCountsForSitePerType(), bpp::SubstitutionMappingTools::getCountsPerSitePerBranchPerType(), bpp::SubstitutionMappingTools::getCountsPerSitePerType(), bpp::SubstitutionMappingTools::getCountsPerTypePerBranch(), and bpp::SubstitutionMappingTools::getNormForSite().
|
inlinevirtualinherited |
index | The site index. |
Implements bpp::MappingInterface.
Definition at line 98 of file Mapping.h.
References bpp::AbstractMapping::sitesPositions_.
|
pure virtualinherited |
index | The site index. |
Implemented in bpp::AbstractMapping.
|
pure virtualinherited |
Implemented in bpp::ProbabilisticSubstitutionMapping.
|
pure virtualinherited |
Implemented in bpp::ProbabilisticSubstitutionMapping.
|
inline |
Definition at line 70 of file SubstitutionMapping.h.
References numberOfTypes_, and bpp::AbstractMapping::operator=().
Referenced by bpp::ProbabilisticSubstitutionMapping::operator=().
|
inlinevirtualinherited |
Reimplemented in bpp::ProbabilisticSubstitutionMapping, and bpp::ProbabilisticRewardMapping.
Definition at line 113 of file Mapping.h.
References bpp::AbstractMapping::nbSites_, and bpp::AbstractMapping::sitesPositions_.
Referenced by bpp::ProbabilisticRewardMapping::setNumberOfSites(), bpp::ProbabilisticSubstitutionMapping::setNumberOfSites(), and bpp::ProbabilisticSubstitutionMapping::setNumberOfSitesAndTypes().
|
inlinevirtual |
Implements bpp::SubstitutionMapping.
Reimplemented in bpp::ProbabilisticSubstitutionMapping.
Definition at line 85 of file SubstitutionMapping.h.
References numberOfTypes_.
Referenced by bpp::ProbabilisticSubstitutionMapping::setNumberOfSitesAndTypes(), and bpp::ProbabilisticSubstitutionMapping::setNumberOfSubstitutionTypes().
|
inlinevirtualinherited |
Set the position of a given site.
index | The site index. |
position | The position of the site. |
Implements bpp::MappingInterface.
Definition at line 103 of file Mapping.h.
References bpp::AbstractMapping::nbSites_, and bpp::AbstractMapping::sitesPositions_.
Referenced by bpp::RewardMappingTools::readFromStream(), and bpp::SubstitutionMappingTools::readFromStream().
|
pure virtualinherited |
Set the position of a given site.
index | The site index. |
position | The position of the site. |
Implemented in bpp::AbstractMapping.
|
protectedinherited |
Definition at line 82 of file Mapping.h.
Referenced by bpp::AbstractMapping::getNumberOfSites(), bpp::AbstractMapping::setNumberOfSites(), and bpp::AbstractMapping::setSitePosition().
|
private |
Definition at line 60 of file SubstitutionMapping.h.
Referenced by getNumberOfSubstitutionTypes(), operator=(), and setNumberOfSubstitutionTypes().
|
protectedinherited |
Definition at line 81 of file Mapping.h.
Referenced by bpp::AbstractMapping::getSitePosition(), bpp::AbstractMapping::setNumberOfSites(), and bpp::AbstractMapping::setSitePosition().