#include <reduce.h>
Public Types | |
typedef P_sourcetype | T_sourcetype |
typedef P_resulttype | T_resulttype |
typedef T_resulttype | T_numtype |
Public Member Functions | |
ReduceMean () | |
bool | operator() (const T_sourcetype &x, const int=0) |
T_resulttype | result (const int count) const |
void | reset () |
Static Public Member Functions | |
static const char * | name () |
Static Public Attributes | |
static const bool | needIndex = false |
static const bool | needInit = false |
Protected Attributes | |
T_resulttype | sum_ |
typedef T_resulttype ReduceMean< P_sourcetype, P_resulttype >::T_numtype |
typedef P_resulttype ReduceMean< P_sourcetype, P_resulttype >::T_resulttype |
typedef P_sourcetype ReduceMean< P_sourcetype, P_resulttype >::T_sourcetype |
ReduceMean< P_sourcetype, P_resulttype >::ReduceMean | ( | ) | [inline] |
static const char* ReduceMean< P_sourcetype, P_resulttype >::name | ( | ) | [inline, static] |
bool ReduceMean< P_sourcetype, P_resulttype >::operator() | ( | const T_sourcetype & | x, | |
const | int = 0 | |||
) | [inline] |
References ReduceMean< P_sourcetype, P_resulttype >::sum_.
void ReduceMean< P_sourcetype, P_resulttype >::reset | ( | ) | [inline] |
References ReduceMean< P_sourcetype, P_resulttype >::sum_.
T_resulttype ReduceMean< P_sourcetype, P_resulttype >::result | ( | const int | count | ) | const [inline] |
References ReduceMean< P_sourcetype, P_resulttype >::sum_.
const bool ReduceMean< P_sourcetype, P_resulttype >::needIndex = false [static] |
const bool ReduceMean< P_sourcetype, P_resulttype >::needInit = false [static] |
T_resulttype ReduceMean< P_sourcetype, P_resulttype >::sum_ [protected] |