#include <normcache.h>
Public Member Functions | |
normcache (dictionary *d) | |
~normcache () | |
void | expand (int i) |
double | get (ngram ng, int size, double &value) |
double | put (ngram ng, int size, double value) |
void | stat () |
Definition at line 29 of file normcache.h.
normcache::normcache | ( | dictionary * | d | ) |
Definition at line 33 of file normcache.cpp.
References LEAFPROB, NULL, and dictionary::size().
normcache::~normcache | ( | ) | [inline] |
Definition at line 41 of file normcache.h.
void normcache::expand | ( | int | i | ) |
Definition at line 54 of file normcache.cpp.
Referenced by put().
double normcache::get | ( | ngram | ng, | |
int | size, | |||
double & | value | |||
) |
Definition at line 69 of file normcache.cpp.
References ngram::freq, ngramtable::get(), and ngram::wordp().
double normcache::put | ( | ngram | ng, | |
int | size, | |||
double | value | |||
) |
Definition at line 90 of file normcache.cpp.
References expand(), ngram::freq, ngramtable::get(), ngramtable::put(), and ngram::wordp().
Referenced by mdiadaptlm::zeta().
void normcache::stat | ( | ) |
Definition at line 114 of file normcache.cpp.