oln::utils::f_moments< T, C > Struct Template Reference

Computes the mean, the variance and store the min, the max. More...

#include <stat.hh>

Inheritance diagram for oln::utils::f_moments< T, C >:

Inheritance graph
[legend]
Collaboration diagram for oln::utils::f_moments< T, C >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef f_minmax< T > super

Public Member Functions

void operator() (const T &val)
const C mean () const
 Return the mean value.

const C variance () const
 Return the variance.


Protected Attributes

sum1_
sum2_

Detailed Description

template<class T, class C = ntg::float_s>
struct oln::utils::f_moments< T, C >

Computes the mean, the variance and store the min, the max.

Definition at line 102 of file utils/stat.hh.


The documentation for this struct was generated from the following file:
Generated on Thu Apr 15 20:17:27 2004 for Olena by doxygen 1.3.6-20040222