5 #ifndef BPP_PHYL_MAPPING_PHYLOBRANCHMAPPING_H
6 #define BPP_PHYL_MAPPING_PHYLOBRANCHMAPPING_H
12 #include "../Tree/PhyloBranch.h"
const Vdouble & getSiteCount(size_t site) const
PhyloBranchMapping(const PhyloBranchMapping &branch)
Copy constructor.
PhyloBranchMapping * clone() const
void setSiteTypeCount(size_t site, size_t type, double value)
Sets the counts at a given site on a given type.
size_t getNumberOfTypes() const
Gets the number of types.
PhyloBranchMapping(const PhyloBranch &branch)
~PhyloBranchMapping()
destructor. In Graph, nothing is changed.
double getSiteTypeCount(size_t site, size_t type) const
Gets the counts at a given site on a given type.
double operator()(size_t site, size_t type) const
Without check.
PhyloBranchMapping()
Constructors.
const VVdouble & getCounts() const
return counts
void setNumberOfTypes(size_t nbTypes)
Define a number of types.
PhyloBranchMapping(double length)
Vdouble & getSiteCount(size_t site)
Gets the counts at a given site.
size_t getNumberOfSites() const
Gets the number of sites.
double & operator()(size_t site, size_t type)
PhyloBranchMapping & operator=(const PhyloBranchMapping &branch)
Assignation operator.
void setNumberOfSites(size_t nbSites)
Sets a number of sites. If the number of types is already defined, it is kept.
void setNumberOfSitesAndTypes(size_t nbSites, size_t nbTypes)
Define a number of types.
PhyloBranch & operator=(const PhyloBranch &branch)
Assignation operator.
Defines the basic types of data flow nodes.
std::vector< double > Vdouble
std::vector< Vdouble > VVdouble