5 #ifndef BPP_PHYL_MODEL_CODON_DFPDISTANCEFREQUENCIESSUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_CODON_DFPDISTANCEFREQUENCIESSUBSTITUTIONMODEL_H
74 std::shared_ptr<const GeneticCode> gCode,
75 std::unique_ptr<CodonFrequencySetInterface> pfreq,
76 std::shared_ptr<const AlphabetIndex2> pdist =
nullptr);
88 std::string
getName()
const override;
99 void setFreq(std::map<int, double>& frequencies)
override;
Abstract class for modelling of non-synonymous and synonymous substitution rates in codon models.
Abstract Class for substitution models on codons parametrized by frequencies.
const CodonFrequencySetInterface & codonFrequencySet() const override
bool hasCodonFrequencySet() const override
Class for neutral substitution models on triplets, following the mutation process proposed in Doron-F...
Parametrize a set of state frequencies for codons.
Class for non-synonymous substitution models on codons with parameterized equilibrium frequencies and...
size_t getNumberOfStates() const override
Get the number of states.
DFPDistanceFrequenciesSubstitutionModel * clone() const override
std::string getName() const override
Get the name of the model.
void setFreq(std::map< int, double > &frequencies) override
DFPDistanceFrequenciesSubstitutionModel(std::shared_ptr< const GeneticCode > gCode, std::unique_ptr< CodonFrequencySetInterface > pfreq, std::shared_ptr< const AlphabetIndex2 > pdist=nullptr)
Build a new DFPDistanceFrequenciesSubstitutionModel object from three pointers to AbstractSubstitutio...
const CodonFrequencySetInterface & codonFrequencySet() const override
double getCodonsMulRate(size_t i, size_t j) const override
Returns the multiplicative rate specific to two codons specified by their number. The respective gene...
void fireParameterChanged(const ParameterList ¶meterlist) override
void setNamespace(const std::string &) override
virtual ~DFPDistanceFrequenciesSubstitutionModel()
bool hasCodonFrequencySet() const override
Defines the basic types of data flow nodes.