bpp-phyl3 3.0.0
PhyloSubstitutionMapping.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: The Bio++ Development Group
2//
3// SPDX-License-Identifier: CECILL-2.1
4
5#ifndef BPP_PHYL_MAPPING_PHYLOMAPPINGS_PHYLOSUBSTITUTIONMAPPING_H
6#define BPP_PHYL_MAPPING_PHYLOMAPPINGS_PHYLOSUBSTITUTIONMAPPING_H
7
8
9// From bpp-seq:
12#include "../SubstitutionRegister.h"
13#include "../../Model/SubstitutionModel.h"
14#include "../SubstitutionMappingTools.h"
15
17
18namespace bpp
19{
21 public Clonable
22{
23public:
26
28
29public:
37 virtual std::shared_ptr<const TransitionModelInterface> getModel(unsigned int branchId, size_t classIndex) const = 0;
38
42 virtual bool matchParametersValues(const ParameterList& nullParams) = 0;
43
47 virtual const ParameterList& getParameters() const = 0;
48
56 virtual void computeNormalizations(const ParameterList& nullParams,
57 short unresolvedOption = SubstitutionMappingTools::UNRESOLVED_ZERO,
58 bool verbose = true) = 0;
59
63 virtual bool normalizationsPerformed() const = 0;
64
68 virtual bool countsPerformed() const = 0;
69
77 virtual void computeCounts(short unresolvedOption = SubstitutionMappingTools::UNRESOLVED_ZERO,
78 double threshold = -1, bool verbose = true) = 0;
79
84
85 virtual const ProbabilisticSubstitutionMapping& counts() const = 0;
86
91
93
97 virtual void setDistances(const AlphabetIndex2& ndist) = 0;
98};
99} // end of namespace bpp.
100#endif // BPP_PHYL_MAPPING_PHYLOMAPPINGS_PHYLOSUBSTITUTIONMAPPING_H
virtual const ProbabilisticSubstitutionMapping & counts() const =0
virtual bool matchParametersValues(const ParameterList &nullParams)=0
Checks and sets the models with given parameters.
virtual const ParameterList & getParameters() const =0
Gets the parameters.
virtual ProbabilisticSubstitutionMapping & normalizations()=0
Return the tree of factors.
PhyloSubstitutionMapping * clone() const =0
virtual void computeCounts(short unresolvedOption=SubstitutionMappingTools::UNRESOLVED_ZERO, double threshold=-1, bool verbose=true)=0
ComputeCounts.
virtual void computeNormalizations(const ParameterList &nullParams, short unresolvedOption=SubstitutionMappingTools::UNRESOLVED_ZERO, bool verbose=true)=0
compute Normalizations
virtual ProbabilisticSubstitutionMapping & counts()=0
Return the tree of counts.
virtual bool countsPerformed() const =0
return if counts have been performed.
virtual void setDistances(const AlphabetIndex2 &ndist)=0
change Distances
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 const ProbabilisticSubstitutionMapping & normalizations() const =0
virtual bool normalizationsPerformed() const =0
return if normalizations have been performed.
Data storage class for probabilistic substitution mappings.
static const short UNRESOLVED_ZERO
Constants describing how unresolved characters are counted:
Defines the basic types of data flow nodes.