bpp-phyl  2.1.0
 All Classes Namespaces Files Functions Variables Friends Pages
bpp::ProteinFrequenciesSet Class Referenceabstract

Parametrize a set of state frequencies for proteins. More...

#include <Bpp/Phyl/Model/FrequenciesSet/ProteinFrequenciesSet.h>

+ Inheritance diagram for bpp::ProteinFrequenciesSet:
+ Collaboration diagram for bpp::ProteinFrequenciesSet:

Public Member Functions

ProteinFrequenciesSetclone () const =0
 
const ProteicAlphabetgetAlphabet () const =0
 
virtual const std::vector
< double > & 
getFrequencies () const =0
 
virtual void setFrequencies (const std::vector< double > &frequencies)=0
 Set the parameters in order to match a given set of frequencies. More...
 
virtual void setFrequenciesFromMap (const std::map< int, double > &frequencies)=0
 Set the Frequencies from the one of the map which keys match with a letter of the Alphabet. The frequencies are normalized so that the matching values sum 1. More...
 
virtual std::string getName () const =0
 
virtual size_t getNumberOfFrequencies () const =0
 

Static Public Attributes

static IntervalConstraint FREQUENCE_CONSTRAINT_SMALL
 
static IntervalConstraint FREQUENCE_CONSTRAINT_MILLI
 

Detailed Description

Parametrize a set of state frequencies for proteins.

Definition at line 52 of file ProteinFrequenciesSet.h.

Member Function Documentation

const ProteicAlphabet* bpp::ProteinFrequenciesSet::getAlphabet ( ) const
pure virtual
Returns
The alphabet associated to this set.

Implements bpp::FrequenciesSet.

Implemented in bpp::FixedProteinFrequenciesSet, bpp::MvaFrequenciesSet, and bpp::FullProteinFrequenciesSet.

virtual size_t bpp::FrequenciesSet::getNumberOfFrequencies ( ) const
pure virtualinherited
Returns
The number of frequencies in the set. In most cases this will correspond to the size of the alphabet, but it needs not be.

Implemented in bpp::AbstractFrequenciesSet.

virtual void bpp::FrequenciesSet::setFrequenciesFromMap ( const std::map< int, double > &  frequencies)
pure virtualinherited

Set the Frequencies from the one of the map which keys match with a letter of the Alphabet. The frequencies are normalized so that the matching values sum 1.

Parameters
frequenciesThe set of frequencies to match.

Implemented in bpp::AbstractFrequenciesSet.

Referenced by bpp::BppOFrequenciesSetFormat::initialize_(), bpp::AbstractCodonFitnessSubstitutionModel::setFreq(), bpp::AbstractCodonFrequenciesSubstitutionModel::setFreq(), and bpp::AbstractCodonPhaseFrequenciesSubstitutionModel::setFreq().

Member Data Documentation

IntervalConstraint FrequenciesSet::FREQUENCE_CONSTRAINT_MILLI
staticinherited

The documentation for this class was generated from the following file: