23 #include "__DSO78ExchangeabilityCode"
24 #include "__DSO78FrequenciesCode"
30 std::shared_ptr<const ProteicAlphabet> alpha,
31 std::unique_ptr<ProteinFrequencySetInterface> freqSet,
35 freqSet_(std::move(freqSet))
37 #include "__DSO78ExchangeabilityCode"
38 #include "__DSO78FrequenciesCode"
52 map<int, double> counts;
56 freq_[(size_t)i.first] = i.second;
void addParameters_(const ParameterList ¶meters)
bool matchParametersValues(const ParameterList ¶meters) override
Specialisation abstract class for reversible protein substitution model.
virtual void updateMatrices_() override
Compute and diagonalize the matrix, and fill the eigenValues_, leftEigenVectors_ and rightEigenVecto...
Vdouble freq_
The vector of equilibrium frequencies.
This class implements a state map where all resolved states are modeled.
std::unique_ptr< ProteinFrequencySetInterface > freqSet_
DSO78(std::shared_ptr< const ProteicAlphabet > alpha)
Build a simple DSO78 model, with original equilibrium frequencies.
void setFreqFromData(const SequenceDataInterface &data, double pseudoCount=0) override
Set equilibrium frequencies equal to the frequencies estimated from the data.
FrequencySet useful for homogeneous and stationary models, protein implementation.
Map the states of a given alphabet which have a model state.
Defines the basic types of data flow nodes.