5 #ifndef BPP_PHYL_MODEL_FREQUENCYSET_MVAFREQUENCYSET_H
6 #define BPP_PHYL_MODEL_FREQUENCYSET_MVAFREQUENCYSET_H
9 #include "../Protein/Coala.h"
58 return std::dynamic_pointer_cast<const ProteicAlphabet>(
getAlphabet());
68 void setFrequencies(
const std::vector<double>& frequencies)
override;
76 void computeReversePCA(
const std::vector<double>& positions, std::vector<double>& tmpFreqs);
78 void computeReverseCOA(
const std::vector<double>& positions, std::vector<double>& tmpFreqs);
Basic implementation of the FrequencySet interface.
std::shared_ptr< const Alphabet > getAlphabet() const override
This class is the core class inherited by the Coala class. COaLA is a branch-heterogeneous amino-acid...
A frequencies set used to estimate frequencies at the root with the COaLA model. Frequencies at the r...
void computeCoordsFirstSpacePCA(std::vector< double > &tmpFreqs, std::vector< double > &freqs)
RowMatrix< double > tPpalAxes_
void setMatrixOfRowCoords(const RowMatrix< double > &matrix)
RowMatrix< double > rowCoords_
MvaFrequencySet(std::shared_ptr< const ProteicAlphabet > alpha)
Constructor.
void initSet(const CoalaCore &coala)
void setParamValues(std::map< std::string, std::string > &valuesSettings)
void computeReverseCOA(const std::vector< double > &positions, std::vector< double > &tmpFreqs)
MvaFrequencySet * clone() const override
std::vector< double > columnWeights_
std::shared_ptr< const ProteicAlphabet > getProteicAlphabet() const override
void setFrequencies(const std::vector< double > &frequencies) override
Set the parameters in order to match a given set of frequencies.
void computeCoordsFirstSpaceCOA(std::vector< double > &tmpFreqs, std::vector< double > &freqs)
void computeReversePCA(const std::vector< double > &positions, std::vector< double > &tmpFreqs)
void setModelName(const std::string &modelName)
void fireParameterChanged(const ParameterList ¶meters) override
void setTransposeMatrixOfPpalAxes(const RowMatrix< double > &matrix)
std::map< std::string, std::string > paramValues_
void setNbrOfAxes(const size_t &nAxes)
void setVectorOfColumnWeights(const std::vector< double > &cw)
Parametrize a set of state frequencies for proteins.
Defines the basic types of data flow nodes.