Edinburgh Speech Tools  2.1-release
ngrammar_aux.cc File Reference
#include <iostream>
#include <cstring>
#include "EST_String.h"
#include "EST_Ngrammar.h"
Include dependency graph for ngrammar_aux.cc:

Go to the source code of this file.

Functions

void make_f_of_f (EST_BackoffNgrammarState *s, void *params)
 
void get_max_f (EST_BackoffNgrammarState *s, void *params)
 
void map_f_of_f (EST_BackoffNgrammarState *s, void *params)
 
void zero_small_f (EST_BackoffNgrammarState *s, void *params)
 
void frequency_of_frequencies (EST_DVector &ff, EST_Ngrammar &n, int this_order)
 
void map_frequencies (EST_Ngrammar &n, const EST_DVector &map, const int this_order)
 
bool Good_Turing_smooth (EST_Ngrammar &ngrammar, int maxcount, int mincount)
 
void Good_Turing_discount (EST_Ngrammar &ngrammar, const int maxcount, const double default_discount)
 

Function Documentation

void make_f_of_f ( EST_BackoffNgrammarState s,
void *  params 
)

Definition at line 120 of file ngrammar_aux.cc.

void get_max_f ( EST_BackoffNgrammarState s,
void *  params 
)

Definition at line 141 of file ngrammar_aux.cc.

void map_f_of_f ( EST_BackoffNgrammarState s,
void *  params 
)

Definition at line 161 of file ngrammar_aux.cc.

void zero_small_f ( EST_BackoffNgrammarState s,
void *  params 
)

Definition at line 187 of file ngrammar_aux.cc.

void frequency_of_frequencies ( EST_DVector ff,
EST_Ngrammar n,
int  this_order 
)

Definition at line 207 of file ngrammar_aux.cc.

void map_frequencies ( EST_Ngrammar n,
const EST_DVector map,
const int  this_order 
)

Definition at line 306 of file ngrammar_aux.cc.

bool Good_Turing_smooth ( EST_Ngrammar ngrammar,
int  maxcount,
int  mincount 
)

Definition at line 410 of file ngrammar_aux.cc.

void Good_Turing_discount ( EST_Ngrammar ngrammar,
const int  maxcount,
const double  default_discount 
)

Definition at line 540 of file ngrammar_aux.cc.