ToPS
Public Member Functions
tops::DiscreteIIDModel Class Reference

This represent probability distributions over a finite set of symbols. More...

#include <DiscreteIIDModel.hpp>

Inheritance diagram for tops::DiscreteIIDModel:
tops::FactorableModel tops::ProbabilisticModel tops::DegenerateDistribution

List of all members.

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

Detailed Description

This represent probability distributions over a finite set of symbols.

Definition at line 42 of file DiscreteIIDModel.hpp.


Constructor & Destructor Documentation

tops::DiscreteIIDModel::DiscreteIIDModel ( const DoubleVector &  probabilities)

Constructor.

Parameters:
probabilitiesis the probabilities value

Definition at line 36 of file DiscreteIIDModel.cpp.


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