19 std::shared_ptr<const ProteicAlphabet> alpha) :
24 #include "__LG08ExchangeabilityCode"
25 #include "__LG08FrequenciesCode"
31 std::shared_ptr<const ProteicAlphabet> alpha,
32 std::unique_ptr<ProteinFrequencySetInterface> freqSet,
36 freqSet_(std::move(freqSet))
38 #include "__LG08ExchangeabilityCode"
39 #include "__LG08FrequenciesCode"
55 map<int, double> counts;
59 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.
FrequencySet useful for homogeneous and stationary models, protein implementation.
LG08(std::shared_ptr< const ProteicAlphabet > alpha)
Build a simple LG08 model, with original equilibrium frequencies.
std::unique_ptr< ProteinFrequencySetInterface > freqSet_
void setFreqFromData(const SequenceDataInterface &data, double pseudoCount=0) override
Set equilibrium frequencies equal to the frequencies estimated from the data.
Defines the basic types of data flow nodes.