5 #ifndef BPP_PHYL_MAPPING_PHYLOMAPPINGS_PHYLOSUBSTITUTIONMAPPING_H
6 #define BPP_PHYL_MAPPING_PHYLOMAPPINGS_PHYLOSUBSTITUTIONMAPPING_H
12 #include "../SubstitutionRegister.h"
13 #include "../../Model/SubstitutionModel.h"
14 #include "../SubstitutionMappingTools.h"
37 virtual std::shared_ptr<const TransitionModelInterface>
getModel(
unsigned int branchId,
size_t classIndex)
const = 0;
58 bool verbose =
true) = 0;
78 double threshold = -1,
bool verbose =
true) = 0;
virtual bool matchParametersValues(const ParameterList &nullParams)=0
Checks and sets the models with given parameters.
virtual ~PhyloSubstitutionMapping()
PhyloSubstitutionMapping()
virtual ProbabilisticSubstitutionMapping & counts()=0
Return the tree of counts.
virtual const ProbabilisticSubstitutionMapping & counts() const =0
virtual ProbabilisticSubstitutionMapping & normalizations()=0
Return the tree of factors.
virtual const ParameterList & getParameters() const =0
Gets the parameters.
virtual void computeCounts(short unresolvedOption=SubstitutionMappingTools::UNRESOLVED_ZERO, double threshold=-1, bool verbose=true)=0
ComputeCounts.
virtual std::shared_ptr< const TransitionModelInterface > getModel(unsigned int branchId, size_t classIndex) const =0
Get the substitution model corresponding to a certain branch and model class.
virtual void computeNormalizations(const ParameterList &nullParams, short unresolvedOption=SubstitutionMappingTools::UNRESOLVED_ZERO, bool verbose=true)=0
compute Normalizations
virtual bool countsPerformed() const =0
return if counts have been performed.
virtual void setDistances(const AlphabetIndex2 &ndist)=0
change Distances
PhyloSubstitutionMapping * clone() const =0
virtual bool normalizationsPerformed() const =0
return if normalizations have been performed.
virtual const ProbabilisticSubstitutionMapping & normalizations() const =0
Data storage class for probabilistic substitution mappings.
Defines the basic types of data flow nodes.