5 #ifndef BPP_PHYL_MODEL_FREQUENCYSET_PROTEINFREQUENCYSET_H
6 #define BPP_PHYL_MODEL_FREQUENCYSET_PROTEINFREQUENCYSET_H
43 std::shared_ptr<const ProteicAlphabet>
alphabet,
44 bool allowNullFreqs =
false,
45 unsigned short method = 1,
46 const std::string& name =
"Full") :
55 std::shared_ptr<const ProteicAlphabet>
alphabet,
56 const std::vector<double>& initFreqs,
57 bool allowNullFreqs =
false,
58 unsigned short method = 1,
59 const std::string& name =
"Full") :
73 return std::dynamic_pointer_cast<const ProteicAlphabet>(
getAlphabet());
88 std::shared_ptr<const ProteicAlphabet>
alphabet,
89 const std::vector<double>& initFreqs,
90 const std::string& name =
"Fixed") :
102 std::shared_ptr<const ProteicAlphabet>
alphabet,
103 const std::string& name =
"Fixed") :
113 return std::dynamic_pointer_cast<const ProteicAlphabet>(
getAlphabet());
129 std::shared_ptr<const ProteicAlphabet>
alphabet,
130 const std::string& path,
142 return std::dynamic_pointer_cast<const ProteicAlphabet>(
getAlphabet());
This class implements a state map where all resolved states are modeled.
FrequencySet useful for homogeneous and stationary models.
FrequencySet useful for homogeneous and stationary models, protein implementation.
FixedProteinFrequencySet * clone() const override
FixedProteinFrequencySet(std::shared_ptr< const ProteicAlphabet > alphabet, const std::string &name="Fixed")
Construction with uniform frequencies on the letters of the alphabet.
FixedProteinFrequencySet(std::shared_ptr< const ProteicAlphabet > alphabet, const std::vector< double > &initFreqs, const std::string &name="Fixed")
std::shared_ptr< const ProteicAlphabet > getProteicAlphabet() const override
Parametrize a set of state frequencies.
virtual std::shared_ptr< const Alphabet > getAlphabet() const =0
virtual const Alphabet & alphabet() const =0
A generic FrequencySet allowing for the estimation of all frequencies.
Protein FrequencySet using 19 independent parameters to model the 20 frequencies.
std::shared_ptr< const ProteicAlphabet > getProteicAlphabet() const override
FullProteinFrequencySet * clone() const override
FullProteinFrequencySet(std::shared_ptr< const ProteicAlphabet > alphabet, const std::vector< double > &initFreqs, bool allowNullFreqs=false, unsigned short method=1, const std::string &name="Full")
FullProteinFrequencySet(std::shared_ptr< const ProteicAlphabet > alphabet, bool allowNullFreqs=false, unsigned short method=1, const std::string &name="Full")
Parametrize a set of state frequencies for proteins.
ProteinFrequencySetInterface * clone() const override=0
virtual std::shared_ptr< const ProteicAlphabet > getProteicAlphabet() const =0
FrequencySet to be read in a file. More specifically, a frequency set is read in a column of a given ...
UserProteinFrequencySet(std::shared_ptr< const ProteicAlphabet > alphabet, const std::string &path, size_t nCol=1)
std::shared_ptr< const ProteicAlphabet > getProteicAlphabet() const override
UserProteinFrequencySet * clone() const override
Defines the basic types of data flow nodes.