12 mapParNamesFromPmodel_(),
20 mapParNamesFromPmodel_(model.mapParNamesFromPmodel_),
21 lParPmodel_(model.lParPmodel_)
41 throw Exception(
"AbstractBiblioTransitionModel::getParNameFromPmodel : unknown parameter " + name);
51 if (it.second == name)
55 throw Exception(
"AbstractBiblioTransitionModel::getPmodelParName: unknown parameter name " + name);
92 map<string, string> mapParNamesFromPmodel_new;
128 map<int, double> freqs;
Partial implementation of the SubstitutionModel interface for models that are set for matching the bi...
std::map< std::string, std::string > mapParNamesFromPmodel_
Tools to make the link between the Parameters of the object and those of pmixmodel_.
void setFreq(std::map< int, double > &frequ) override
Set equilibrium frequencies.
AbstractBiblioTransitionModel(const std::string &prefix)
ParameterList lParPmodel_
virtual void updateMatrices_()
std::string getPmodelParName(const std::string &name) const
get the name of a parameter in the submodel from its apparent name
void addRateParameter() override
Methods to supersede TransitionModel methods.
AbstractBiblioTransitionModel & operator=(const AbstractBiblioTransitionModel &model)
void setNamespace(const std::string &name) override
void setFreqFromData(const SequenceDataInterface &data, double pseudoCount=0) override
Set equilibrium frequencies equal to the frequencies estimated from the data.
std::string getParNameFromPmodel(const std::string &name) const
get the name of a parameter from its name in a submodel
void addParameter_(Parameter *parameter)
AbstractParameterAliasable & operator=(const AbstractParameterAliasable &ap)
void setNamespace(const std::string &prefix)
const Parameter & parameter(const std::string &name) const override
bool matchParametersValues(const ParameterList ¶meters) override
std::string getNamespace() const override
std::string getParameterNameWithoutNamespace(const std::string &name) const override
const ParameterList & getParameters() const override
double getParameterValue(const std::string &name) const override
double getRate() const override
Get the rate.
void setFreq(std::map< int, double > &frequencies) override
Set equilibrium frequencies.
virtual std::string getName() const override
Get the name of the model.
const BranchModelInterface & model() const override
BranchModelInterface & model_()
virtual void addRateParameter()=0
virtual void addParameters(const ParameterList ¶ms)
virtual void addParameter(const Parameter ¶m)
static const std::shared_ptr< IntervalConstraint > R_PLUS_STAR
virtual std::string getParameterNameWithoutNamespace(const std::string &name) const=0
virtual bool matchParametersValues(const ParameterList ¶meters)=0
virtual void setNamespace(const std::string &prefix)=0
Defines the basic types of data flow nodes.