stat.h File Reference

The wrapper structure for all statistics in sphinx 3.x. More...

#include <profile.h>
#include <s3types.h>
#include "sphinx3_export.h"

Go to the source code of this file.

Classes

struct  stat_t
 Structure to hold all statistics in Sphinx 3.x. More...

Functions

stat_tstat_init (void)
void stat_free (stat_t *st)
void stat_clear_utt (stat_t *st)
void stat_clear_corpus (stat_t *st)
void stat_update_corpus (stat_t *st)
void stat_report_utt (stat_t *st, char *uttid)
S3DECODER_EXPORT void stat_report_corpus (stat_t *st)

Detailed Description

The wrapper structure for all statistics in sphinx 3.x.


Function Documentation

void stat_clear_corpus ( stat_t st  ) 

Clear the corpus statistics

Parameters:
st A statistics data structure
void stat_clear_utt ( stat_t st  ) 

Clear the utterance statistics

Parameters:
st A statistics data structure
void stat_free ( stat_t st  ) 

Delete the memory of stat_init

Parameters:
st A statistics data structure
stat_t* stat_init ( void   ) 

Initialized the statistics structure

Returns:
a statistics data structure
S3DECODER_EXPORT void stat_report_corpus ( stat_t st  ) 

Report the total statistics

Parameters:
st A statistics data structure

Referenced by main().

void stat_report_utt ( stat_t st,
char *  uttid 
)

Report the utterance statistics

Parameters:
st A statistics data structure
uttid The utterance ID
void stat_update_corpus ( stat_t st  ) 

Update the corpus statistics with the utterance statistics

Parameters:
st A statistics data structure

Generated on 7 Mar 2010 by  doxygen 1.6.1