TRF Language Model
hrf::ModelExam Class Reference

#include <hrf-code-exam.h>

Public Member Functions

 ModelExam (Model *p)
 
void SetValueAll (PValue v)
 set parameter values More...
 
void SetValueRand ()
 set parameter values randomly More...
 
void TestNormalization (int nLen)
 test the exact normalization More...
 
void TestExpectation (int nLen)
 test feat expectation More...
 
void TestHiddenExp (int nLen)
 test hidden expectation More...
 
void TestSample (int nLen=-1)
 test sample More...
 

Public Attributes

Modelpm
 

Detailed Description

Definition at line 9 of file hrf-code-exam.h.

Constructor & Destructor Documentation

§ ModelExam()

hrf::ModelExam::ModelExam ( Model p)
inline

Definition at line 15 of file hrf-code-exam.h.

Member Function Documentation

§ SetValueAll()

void hrf::ModelExam::SetValueAll ( PValue  v)

set parameter values

Definition at line 5 of file hrf-code-exam.cpp.

§ SetValueRand()

void hrf::ModelExam::SetValueRand ( )

set parameter values randomly

Definition at line 11 of file hrf-code-exam.cpp.

§ TestExpectation()

void hrf::ModelExam::TestExpectation ( int  nLen)

test feat expectation

Definition at line 34 of file hrf-code-exam.cpp.

§ TestHiddenExp()

void hrf::ModelExam::TestHiddenExp ( int  nLen)

test hidden expectation

Definition at line 62 of file hrf-code-exam.cpp.

§ TestNormalization()

void hrf::ModelExam::TestNormalization ( int  nLen)

test the exact normalization

Definition at line 18 of file hrf-code-exam.cpp.

§ TestSample()

void hrf::ModelExam::TestSample ( int  nLen = -1)

test sample

Definition at line 108 of file hrf-code-exam.cpp.

Member Data Documentation

§ pm

Model* hrf::ModelExam::pm

Definition at line 12 of file hrf-code-exam.h.


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