12 std::unique_ptr<FrequencySetInterface> pfitset,
13 std::shared_ptr<const GeneticCode> pgencode,
14 const string& prefix) :
16 pfitset_(std::move(pfitset)),
34 pfitset_->matchParametersValues(parameters);
41 pfitset_->setFrequenciesFromAlphabetStatesFrequencies(frequencies);
51 double phi_j =
pfitset_->getFrequencies() [j];
52 double phi_i =
pfitset_->getFrequencies() [i];
61 mu = -(
log(phi_i / phi_j) / (1 - (phi_i / phi_j)));
std::unique_ptr< FrequencySetInterface > pfitset_
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...
AbstractCodonFitnessSubstitutionModel(std::unique_ptr< FrequencySetInterface > pfitset, std::shared_ptr< const GeneticCode > pgencode, const std::string &prefix)
void addParameters_(const ParameterList ¶meters)
bool matchParametersValues(const ParameterList ¶meters) override
Parametrize a set of state frequencies for codons.
Defines the basic types of data flow nodes.
double log(const ExtendedFloat &ef)