46 mapParNamesFromPmodel_(),
53 AbstractParameterAliasable(model),
54 mapParNamesFromPmodel_(model.mapParNamesFromPmodel_),
55 lParPmodel_(model.lParPmodel_)
62 AbstractParameterAliasable::operator=(model);
87 addParameter_(
new Parameter(getNamespace() +
"rate",
getModel().
getRate(), &Parameter::R_PLUS_STAR));
99 map<string, string>::iterator it;
103 pl.addParameter(Parameter(getNamespace() + it->second,
getModel().getParameterValue(
getModel().getParameterNameWithoutNamespace(it->first))));
106 matchParametersValues(pl);
113 map<string, string>::iterator it;
117 pl.addParameter(Parameter(getNamespace() + it->second,
getModel().getParameterValue(
getModel().getParameterNameWithoutNamespace(it->first))));
120 matchParametersValues(pl);
AbstractBiblioSubstitutionModel(const std::string &prefix)
std::map< std::string, std::string > mapParNamesFromPmodel_
Tools to make the link between the Parameters of the object and those of pmixmodel_.
ParameterList lParPmodel_
Partial implementation of the SubstitutionModel interface for models that are set for matching the bi...
virtual void updateMatrices()
AbstractBiblioSubstitutionModel & operator=(const AbstractBiblioSubstitutionModel &model)
virtual void addRateParameter()=0
virtual void setFreqFromData(const SequenceContainer &data, double pseudoCount=0)=0
Set equilibrium frequencies equal to the frequencies estimated from the data.
virtual void setFreq(std::map< int, double > &frequencies)
Set equilibrium frequencies.
virtual std::string getName() const =0
Get the name of the model.
void setFreqFromData(const SequenceContainer &data, double pseudoCount=0)
Set equilibrium frequencies equal to the frequencies estimated from the data.
void setFreq(std::map< int, double > &frequ)
Set equilibrium frequencies.
double getRate() const
Get the rate.
virtual const SubstitutionModel & getModel() const =0