In file ../include/EST_simplestats.h:

## class EST_SuffStats

> A class for cummulating ``sufficient statistics'' for a set of numbers: sum, count, sum squared.

### Public Methods

  | EST_SuffStats ()
  | EST_SuffStats (const EST_SuffStats &s)
  void | copy (const EST_SuffStats &s)
  void | reset (void) reset internal values
  double | samples (void) number of samples in set
  double | sum () sum of values
  double | sumx () sum of squared values
  double | mean (void) const mean of currently cummulated values
  double | variance (void) const variance of currently cummulated values
  double | stddev (void) const standard deviation of currently cummulated values
  EST_SuffStats& | operator += (double a) Used to cummulate new values
  EST_SuffStats& | operator + (double a) Used to cummulate new values
  EST_SuffStats& | operator = (const EST_SuffStats &a)

## Documentation

> A class for cummulating ``sufficient statistics'' for a set of numbers: sum, count, sum squared.

> This collects the number, sum and sum squared for a set of number. Offering mean, variance and standard deviation derived from the cummulated values.

`EST_SuffStats()`

`EST_SuffStats(const EST_SuffStats &s)`

`void copy(const EST_SuffStats &s)`

`void reset(void)`
  reset internal values

`double samples(void)`
  number of samples in set

`double sum()`
  sum of values

`double sumx()`
  sum of squared values

`double mean(void) const`
  mean of currently cummulated values

`double variance(void) const`
  variance of currently cummulated values

`double stddev(void) const`
  standard deviation of currently cummulated values

`EST_SuffStats& operator +=(double a)`
  Used to cummulate new values

`EST_SuffStats& operator + (double a)`
  Used to cummulate new values

`EST_SuffStats& operator = (const EST_SuffStats &a)`

This class has no child classes.

Author:
  Alan W Black (awb@cstr.ed.ac.uk): July 1996

Alphabetic index HTML hierarchy of classes or Java

This page is part of the Edinburgh Speech Tools Library documentation
Copyright University of Edinburgh 1997
Contact: speech_tools@cstr.ed.ac.uk