5 #ifndef BPP_PHYL_MODEL_CODON_ABSTRACTCODONFITNESSSUBSTITUTIONMODEL_H
6 #define BPP_PHYL_MODEL_CODON_ABSTRACTCODONFITNESSSUBSTITUTIONMODEL_H
9 # ifndef _ABSTRACTCODONFITNESSSUBSTITUTIONMODEL_H_
10 # define _ABSTRACTCODONFITNESSSUBSTITUTIONMODEL_H_
13 #include "../FrequencySet/CodonFrequencySet.h"
38 std::unique_ptr<FrequencySetInterface>
pfitset_;
46 std::unique_ptr<FrequencySetInterface> pfitset,
47 std::shared_ptr<const GeneticCode> pgencode,
48 const std::string& prefix);
76 void setFreq(std::map<int, double>& frequencies)
override;
95 throw NullPointerException(
"AbstractCodonFitnessSubstitutionModel::frequencySet. No associated FrequencySet.");
Abstract class for modelling of ratios of substitution rates between codons, whatever they are synony...
std::shared_ptr< const GeneticCode > pgencode_
std::unique_ptr< FrequencySetInterface > pfitset_
AbstractCodonFitnessSubstitutionModel * clone() const override
AbstractCodonFitnessSubstitutionModel(const AbstractCodonFitnessSubstitutionModel &model)
void setFreq(std::map< int, double > &frequencies) override
void fireParameterChanged(const ParameterList ¶meters) override
virtual ~AbstractCodonFitnessSubstitutionModel()
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...
bool hasCodonFrequencySet() const override
void setNamespace(const std::string &prefix) override
AbstractCodonFitnessSubstitutionModel & operator=(const AbstractCodonFitnessSubstitutionModel &model)
const FrequencySetInterface & fitness() const
const CodonFrequencySetInterface & codonFrequencySet() const override
AbstractCodonFitnessSubstitutionModel(std::unique_ptr< FrequencySetInterface > pfitset, std::shared_ptr< const GeneticCode > pgencode, const std::string &prefix)
AbstractParameterAliasable & operator=(const AbstractParameterAliasable &ap)
void setNamespace(const std::string &prefix)
Parametrize a set of state frequencies for codons.
Interface for codon models.
Parametrize a set of state frequencies.
Defines the basic types of data flow nodes.