Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# mean_variance< T > Class Template Reference

calculates the mean and variance of a set of data, one element at a time More...

`#include <deFunctors.hpp>`

Collaboration diagram for mean_variance< T >:

[legend]
List of all members.

## Public Member Functions
| mean_variance (const T &first)
void | operator() (const T &elem)
T | mean (long num_elems)
T | var (long num_elems)
## Private Member Functions
void | operator= (const mean_variance &)
## Private Attributes
T | mMean
T | mVar
T | mSum1
T | mSum2
const T | mFirst

## Detailed Description

### template<typename T>
class mean_variance< T >

calculates the mean and variance of a set of data, one element at a time

## Constructor & Destructor Documentation

template<typename T>
mean_variance< T >::mean_variance | ( | const T & | first | ) | `[inline]`

## Member Function Documentation

template<typename T>
T mean_variance< T >::mean | ( | long | num_elems | ) | `[inline]`

template<typename T>
void mean_variance< T >::operator() | ( | const T & | elem | ) | `[inline]`

template<typename T>
void mean_variance< T >::operator= | ( | const mean_variance< T > & |  | ) | `[inline, private]`

template<typename T>
T mean_variance< T >::var | ( | long | num_elems | ) | `[inline]`

## Member Data Documentation

template<typename T>
const T mean_variance< T >::mFirst`[private]`

template<typename T>
T mean_variance< T >::mMean`[private]`

template<typename T>
T mean_variance< T >::mSum1`[private]`

template<typename T>
T mean_variance< T >::mSum2`[private]`

template<typename T>
T mean_variance< T >::mVar`[private]`

The documentation for this class was generated from the following file:

- deFunctors.hpp