30 for (
unsigned int i = 0; i <
size_ - 1; i++)
35 for (
unsigned int i = 1; i <
size_; i++)
60 freq_[(size_t)i.first] = i.second;
void addParameters_(const ParameterList ¶meters)
bool matchParametersValues(const ParameterList ¶meters) override
Partial implementation of the ReversibleSubstitutionModel interface.
virtual void updateMatrices_() override
Compute and diagonalize the matrix, and fill the eigenValues_, leftEigenVectors_ and rightEigenVecto...
bool computeFrequencies() const
RowMatrix< double > exchangeability_
The exchangeability matrix of the model, defined as . When the model is reversible,...
size_t size_
The number of states.
Vdouble freq_
The vector of equilibrium frequencies.
std::shared_ptr< const StateMapInterface > getStateMap() const override
This class implements a state map where all resolved states are modeled.
void setFreq(std::map< int, double > &freq) override
Set equilibrium frequencies.
D1WalkSubstitutionModel(std::shared_ptr< const IntegerAlphabet > alpha, unsigned short method=1)
Build a D1Walk model on a given IntegerAlphabet.
void updateMatrices_() override
std::shared_ptr< FullFrequencySet > freqSet_
The Equilibrium Frequency Set.
Map the states of a given alphabet which have a model state.
Defines the basic types of data flow nodes.