# proto/Source/evaluation.h File Reference

Declaration of evaluation module interface. More...

`#include "ngrams.h"`

## Namespaces
namespace | ace
namespace | ace::eval
## Classes
class | ace::EvaluationTables
| Class evaluates contigency and expected frequency tables. More...
## Typedefs
typedef std::vector< double > | ace::exp_table_t
| Container acts like table of expected frequencies (which are floating point numbers).
## Functions
double | ace::eval::chi_square_test (const EvaluationTables &tables)
double | ace::eval::log_likelihood_ratio (const EvaluationTables &tables)
double | ace::eval::mutual_information (const EvaluationTables &tables)
double | ace::eval::pearsons_coefficient (const EvaluationTables &tables)
double | ace::eval::t_test (const EvaluationTables &tables)
double | ace::eval::z_score (const EvaluationTables &tables)

## Detailed Description

Declaration of evaluation module interface.

Evaluation module performs evaluation of statistics such as:

- chi square test
- log likelihood ratio
- mutual information
- pearsons coefficient
- t test
- z score

The only required input is table of *-frequencies of given N-gram.

Statistics evaluation requires calculation of contigency table and expected *-frequencies table, which are therefore also available.

(C) Ceslav Przywara 2008, MFF UK Prague