SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Enumerations | Functions
stats_2o.c File Reference

calculate second order statistics on data More...

Data Structures

struct  SprStatsStats
 (this module ignores this pointer) More...
 

Enumerations

enum  { SPR_STATS_MEAN, SPR_STATS_SIGMA, SPR_STATS_COVAR, SPR_STATS_MOMENTS_ONLY }
 

Functions

SprStatsStatsspr_stats_free (SprStatsStats *stats)
 
void spr_stats_init (SprStatsStats *stats)
 
SprStatsStatsspr_stats_alloc (SprStatsStats *stats, int what, int vlen)
 
void spr_stats_update (SprStatsStats *stats, const SprMathReal *data, int what)
 
void spr_stats_wupdate (SprStatsStats *stats, const SprMathReal *data, float weight, int what)
 
int spr_stats_calc (SprStatsStats *stats, int what, const SprMathReal *const *Data, int ndata)
 

Detailed Description

calculate second order statistics on data

Calculate mean, sigma and the covariance matrix on a data-set.

Date
26/08/95
Author
Kris Demuynck
Revision History:
04/97 - KD
extracted from the mvg_init program