latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class meansFunctor More...
#include <ltiSerialStatsFunctor.h>
Public Types | |
enum | eVarianceType { Empirical = 0, Maxlikely = 1 } |
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (const parameters &other) |
parameters & | operator= (const parameters &other) |
virtual functor::parameters * | clone () const |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
eVarianceType | type |
the parameters for the class meansFunctor
enum lti::serialStatsFunctor::parameters::eVarianceType |
lti::serialStatsFunctor< T, U >::parameters::parameters | ( | void | ) | [inline] |
default constructor
Reimplemented from lti::statisticsFunctor::parameters.
References lti::serialStatsFunctor< T, U >::parameters::Empirical, and lti::serialStatsFunctor< T, U >::parameters::type.
Referenced by lti::serialStatsFunctor< T, U >::parameters::clone().
lti::serialStatsFunctor< T, U >::parameters::parameters | ( | const parameters & | other | ) | [inline] |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::statisticsFunctor::parameters.
References lti::serialStatsFunctor< T, U >::parameters::copy().
lti::serialStatsFunctor< T, U >::parameters::~parameters | ( | ) | [inline, virtual] |
destructor
Reimplemented from lti::statisticsFunctor::parameters.
virtual functor::parameters* lti::serialStatsFunctor< T, U >::parameters::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::statisticsFunctor::parameters.
References lti::serialStatsFunctor< T, U >::parameters::parameters().
parameters& lti::serialStatsFunctor< T, U >::parameters::copy | ( | const parameters & | other | ) | [inline] |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::statisticsFunctor::parameters.
References lti::statisticsFunctor::parameters::copy(), and lti::serialStatsFunctor< T, U >::parameters::type.
Referenced by lti::serialStatsFunctor< T, U >::parameters::operator=(), and lti::serialStatsFunctor< T, U >::parameters::parameters().
const char* lti::serialStatsFunctor< T, U >::parameters::getTypeName | ( | void | ) | const [inline, virtual] |
returns name of this type
Reimplemented from lti::statisticsFunctor::parameters.
parameters& lti::serialStatsFunctor< T, U >::parameters::operator= | ( | const parameters & | other | ) | [inline] |
copy the contents of a parameters object
other | the parameters object to be copied |
References lti::serialStatsFunctor< T, U >::parameters::copy().
virtual bool lti::serialStatsFunctor< T, U >::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [inline, virtual] |
read the parameters from the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also read, otherwise only the data block will be read. |
Reimplemented from lti::functor::parameters.
References lti::serialStatsFunctor< T, U >::parameters::Empirical, lti::serialStatsFunctor< T, U >::parameters::Maxlikely, lti::ioHandler::readBegin(), lti::ioHandler::readEnd(), and lti::serialStatsFunctor< T, U >::parameters::type.
virtual bool lti::serialStatsFunctor< T, U >::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [inline, virtual] |
write the parameters in the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::functor::parameters.
References lti::serialStatsFunctor< T, U >::parameters::Empirical, lti::serialStatsFunctor< T, U >::parameters::type, lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().
eVarianceType lti::serialStatsFunctor< T, U >::parameters::type |
The type of the variance computation.
If type == empirical, the empirical variance or covariance matrix is computed (division by number of samples minus 1), otherwise, the maximum likelihood estimator is computed (division by number of samples). The default is empirical.
Referenced by lti::serialStatsFunctor< T, U >::parameters::copy(), lti::serialStatsFunctor< T, U >::parameters::parameters(), lti::serialStatsFunctor< T, U >::parameters::read(), and lti::serialStatsFunctor< T, U >::parameters::write().