39 #ifndef _ABSTRACTCODONFREQUENCIESSUBSTITUTIONMODEL_H_ 40 #define _ABSTRACTCODONFREQUENCIESSUBSTITUTIONMODEL_H_ 43 #include "../FrequenciesSet/CodonFrequenciesSet.h" 66 virtual public AbstractParameterAliasable
82 const std::string& prefix);
85 AbstractParameterAliasable(model),
92 AbstractParameterAliasable::operator=(model);
103 void setFreq(std::map<int, double>& frequencies);
void setFreq(std::map< int, double > &frequencies)
Set equilibrium frequencies.
AbstractCodonFrequenciesSubstitutionModel(FrequenciesSet *pfreq, const std::string &prefix)
Build a AbstractCodonFrequenciesSubstitutionModel instance.
const FrequenciesSet * getFrequenciesSet() const
If the model owns a FrequenciesSet, returns a pointer to it, otherwise return 0.
FrequenciesSet * clone() const =0
Parametrize a set of state frequencies.
void setNamespace(const std::string &prefix)
virtual ~AbstractCodonFrequenciesSubstitutionModel()
FrequenciesSet * pfreqset_
AbstractCodonFrequenciesSubstitutionModel & operator=(const AbstractCodonFrequenciesSubstitutionModel &model)
double getCodonsMulRate(size_t, size_t) const
Returns the multiplicative rate specific to two codons specified by their number. The respective gene...
void fireParameterChanged(const ParameterList ¶meters)
Abstract Class for substitution models on codons parametrized by frequencies.
Abstract class for codon models.
virtual CodonSubstitutionModel * clone() const =0
AbstractCodonFrequenciesSubstitutionModel(const AbstractCodonFrequenciesSubstitutionModel &model)