|
ToPS
|
This represent probability distributions over a finite set of symbols. More...
#include <DiscreteIIDModel.hpp>
Public Member Functions | |
| DiscreteIIDModel (const DoubleVector &probabilities) | |
| Constructor. | |
| virtual double | choose () const |
| Choose. | |
| virtual double | log_probability_of (int s) const |
| Returns the log_probability_of the number s. | |
| virtual double | log_probability_of (int s, double new_value) |
| Set the probability value of the number s. | |
| virtual double | evaluatePosition (const Sequence &s, unsigned int i) const |
| Evaluate the position i of the sequence s. | |
| virtual double | choosePosition (const Sequence &s, int i) const |
| Choose the position i of the sequence s given the subsequence before the position i. | |
| virtual std::string | model_name () const |
| returns the model name | |
| virtual int | size () const |
| Returns the number of parameters of the model. | |
| virtual std::string | str () const |
| returns the string representation of the model | |
This represent probability distributions over a finite set of symbols.
Definition at line 42 of file DiscreteIIDModel.hpp.
| tops::DiscreteIIDModel::DiscreteIIDModel | ( | const DoubleVector & | probabilities | ) |
Constructor.
| probabilities | is the probabilities value |
Definition at line 36 of file DiscreteIIDModel.cpp.
1.8.0