Edinburgh Speech Tools  2.1-release
EST_NgrammarState Class Reference

#include <include/EST_Ngrammar.h>

Collaboration diagram for EST_NgrammarState:

Public Member Functions

 EST_NgrammarState ()
 
 EST_NgrammarState (int id, EST_Discrete *d)
 
 EST_NgrammarState (int id, const EST_DiscreteProbDistribution &pdf)
 
 EST_NgrammarState (const EST_NgrammarState &s)
 
 EST_NgrammarState (const EST_NgrammarState *const s)
 
 ~EST_NgrammarState ()
 
void clear ()
 
void init ()
 
void init (int id, EST_Discrete *d)
 
void init (int id, const EST_DiscreteProbDistribution &pdf)
 
void cumulate (const int index, const double count=1)
 
void cumulate (const EST_String &word, const double count=1)
 
int id () const
 
const EST_DiscreteProbDistributionpdf_const () const
 
EST_DiscreteProbDistributionpdf ()
 
double probability (const EST_String &w) const
 
double probability (int w) const
 
double frequency (const EST_String &w) const
 
double frequency (int w) const
 
const EST_Stringmost_probable (double *prob=NULL) const
 

Public Attributes

EST_IVector path
 

Protected Attributes

EST_DiscreteProbDistribution p_pdf
 
int p_id
 

Friends

ostream & operator<< (ostream &s, const EST_NgrammarState &a)
 

Detailed Description

Definition at line 75 of file EST_Ngrammar.h.

Constructor & Destructor Documentation

EST_NgrammarState::EST_NgrammarState ( )
inline

Definition at line 84 of file EST_Ngrammar.h.

EST_NgrammarState::EST_NgrammarState ( int  id,
EST_Discrete d 
)
inline

Definition at line 91 of file EST_Ngrammar.h.

EST_NgrammarState::EST_NgrammarState ( int  id,
const EST_DiscreteProbDistribution pdf 
)
inline

Definition at line 92 of file EST_Ngrammar.h.

EST_NgrammarState::EST_NgrammarState ( const EST_NgrammarState s)

Definition at line 60 of file EST_Ngrammar.cc.

EST_NgrammarState::EST_NgrammarState ( const EST_NgrammarState *const  s)

Definition at line 66 of file EST_Ngrammar.cc.

EST_NgrammarState::~EST_NgrammarState ( )

Definition at line 72 of file EST_Ngrammar.cc.

Member Function Documentation

void EST_NgrammarState::clear ( )

Definition at line 77 of file EST_Ngrammar.cc.

void EST_NgrammarState::init ( )

Definition at line 83 of file EST_Ngrammar.cc.

void EST_NgrammarState::init ( int  id,
EST_Discrete d 
)

Definition at line 89 of file EST_Ngrammar.cc.

void EST_NgrammarState::init ( int  id,
const EST_DiscreteProbDistribution pdf 
)

Definition at line 96 of file EST_Ngrammar.cc.

void EST_NgrammarState::cumulate ( const int  index,
const double  count = 1 
)
inline

Definition at line 107 of file EST_Ngrammar.h.

void EST_NgrammarState::cumulate ( const EST_String word,
const double  count = 1 
)
inline

Definition at line 109 of file EST_Ngrammar.h.

int EST_NgrammarState::id ( ) const
inline

Definition at line 113 of file EST_Ngrammar.h.

const EST_DiscreteProbDistribution& EST_NgrammarState::pdf_const ( ) const
inline

Definition at line 114 of file EST_Ngrammar.h.

EST_DiscreteProbDistribution& EST_NgrammarState::pdf ( )
inline

Definition at line 115 of file EST_Ngrammar.h.

double EST_NgrammarState::probability ( const EST_String w) const
inline

Definition at line 116 of file EST_Ngrammar.h.

double EST_NgrammarState::probability ( int  w) const
inline

Definition at line 118 of file EST_Ngrammar.h.

double EST_NgrammarState::frequency ( const EST_String w) const
inline

Definition at line 119 of file EST_Ngrammar.h.

double EST_NgrammarState::frequency ( int  w) const
inline

Definition at line 121 of file EST_Ngrammar.h.

const EST_String& EST_NgrammarState::most_probable ( double *  prob = NULL) const
inline

Definition at line 122 of file EST_Ngrammar.h.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  s,
const EST_NgrammarState a 
)
friend

Definition at line 103 of file EST_Ngrammar.cc.

Member Data Documentation

EST_DiscreteProbDistribution EST_NgrammarState::p_pdf
protected

Definition at line 80 of file EST_Ngrammar.h.

int EST_NgrammarState::p_id
protected

Definition at line 81 of file EST_Ngrammar.h.

EST_IVector EST_NgrammarState::path

Definition at line 98 of file EST_Ngrammar.h.


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