STK++ 0.9.13
|
Computation online of the statistics of a Real set of variable. More...
#include <STK_Stat_Online.h>
Public Types | |
enum | { value_ = hidden::isSame<Type_, Real>::value_ } |
typedef Array::Type | Type_ |
Public Member Functions | |
Online () | |
default constructor | |
Online (Range const &range) | |
constructor for one dimensional arrays | |
Online (Range const &rows, Range const &cols) | |
constructor for two dimensional arrays | |
Online (Online const &stat) | |
copy constructor | |
Array const & | mean () const |
Array | variance () const |
void | resize (Range const &range) |
initialize one dimensional arrays | |
void | resize (Range const &rows, Range const &cols) |
initialize two dimensional arrays | |
void | release () |
release the computed parameters | |
void | update (Array const &x) |
update the parameters using the current estimated parameters | |
Online & | operator= (Online const &other) |
overwrite the statistics with other. | |
Public Attributes | |
Array | mean_ |
mean of the parameters | |
Array | variance_ |
on line variance | |
int | iter_ |
number of stored values | |
Computation online of the statistics of a Real set of variable.
Definition at line 50 of file STK_Stat_Online.h.
typedef Array::Type STK::Stat::Online< Array, Real >::Type_ |
Definition at line 52 of file STK_Stat_Online.h.
|
inline |
default constructor
Definition at line 58 of file STK_Stat_Online.h.
References STK_STATIC_ASSERT.
|
inline |
constructor for one dimensional arrays
Definition at line 63 of file STK_Stat_Online.h.
References STK_STATIC_ASSERT.
|
inline |
constructor for two dimensional arrays
Definition at line 68 of file STK_Stat_Online.h.
References STK_STATIC_ASSERT.
|
inline |
copy constructor
Definition at line 73 of file STK_Stat_Online.h.
|
inline |
|
inline |
overwrite the statistics with other.
other | the statistics to copy |
Definition at line 102 of file STK_Stat_Online.h.
|
inline |
release the computed parameters
Definition at line 87 of file STK_Stat_Online.h.
initialize one dimensional arrays
Definition at line 81 of file STK_Stat_Online.h.
|
inline |
initialize two dimensional arrays
Definition at line 84 of file STK_Stat_Online.h.
|
inline |
update the parameters using the current estimated parameters
x | the current value |
Definition at line 92 of file STK_Stat_Online.h.
|
inline |
int STK::Stat::Online< Array, Real >::iter_ |
number of stored values
Definition at line 114 of file STK_Stat_Online.h.
Array STK::Stat::Online< Array, Real >::mean_ |
mean of the parameters
Definition at line 110 of file STK_Stat_Online.h.
Array STK::Stat::Online< Array, Real >::variance_ |
on line variance
Definition at line 112 of file STK_Stat_Online.h.