LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::gaussian< T >::parameters Class Reference

the parameters for the class gaussian More...

#include <ltiGaussian.h>

Inheritance diagram for lti::gaussian< T >::parameters:
Inheritance graph
[legend]
Collaboration diagram for lti::gaussian< T >::parameters:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 parameters ()
 parameters (const parameters &other)
 ~parameters ()
const char * getTypeName () const
parameterscopy (const parameters &other)
parametersoperator= (const parameters &other)
virtual functor::parametersclone () const
virtual bool write (ioHandler &handler, const bool complete) const
virtual bool read (ioHandler &handler, const bool complete)
void setMeanAndCovariance (const vector< T > &mu, const matrix< T > &covar)
void setMeanAndVariance (const T mu, const T sigma2)

Public Attributes

vector< T > mean
matrix< T > covariance

Detailed Description

template<class T>
class lti::gaussian< T >::parameters

the parameters for the class gaussian


Constructor & Destructor Documentation

template<class T>
lti::gaussian< T >::parameters::parameters ( void   )  [inline]
template<class T>
lti::gaussian< T >::parameters::parameters ( const parameters other  )  [inline]

copy constructor

Parameters:
other the parameters object to be copied

Reimplemented from lti::mathFunction::parameters.

References lti::gaussian< T >::parameters::copy().

template<class T>
lti::gaussian< T >::parameters::~parameters (  )  [inline, virtual]

destructor

Reimplemented from lti::mathFunction::parameters.


Member Function Documentation

template<class T>
virtual functor::parameters* lti::gaussian< T >::parameters::clone (  )  const [inline, virtual]

returns a pointer to a clone of the parameters

Reimplemented from lti::mathFunction::parameters.

References lti::gaussian< T >::parameters::parameters().

template<class T>
parameters& lti::gaussian< T >::parameters::copy ( const parameters other  )  [inline]
template<class T>
const char* lti::gaussian< T >::parameters::getTypeName ( void   )  const [inline, virtual]

returns name of this type

Reimplemented from lti::mathFunction::parameters.

template<class T>
parameters& lti::gaussian< T >::parameters::operator= ( const parameters other  )  [inline]

copy the contents of a parameters object

Parameters:
other the parameters object to be copied
Returns:
a reference to this parameters object

Reimplemented from lti::mathFunction::parameters.

References lti::gaussian< T >::parameters::copy().

template<class T>
virtual bool lti::gaussian< T >::parameters::read ( ioHandler handler,
const bool  complete 
) [inline, virtual]

read the parameters from the given ioHandler

Parameters:
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.
Returns:
true if write was successful

Reimplemented from lti::mathFunction::parameters.

References lti::gaussian< T >::parameters::covariance, lti::gaussian< T >::parameters::mean, lti::ioHandler::readBegin(), and lti::ioHandler::readEnd().

template<class T>
void lti::gaussian< T >::parameters::setMeanAndCovariance ( const vector< T > &  mu,
const matrix< T > &  covar 
) [inline]
template<class T>
void lti::gaussian< T >::parameters::setMeanAndVariance ( const T  mu,
const T  sigma2 
) [inline]

For the one dimensional case, you can set the proper mean and variance values using this method, which resizes properly the mean and covariance attributes.

References lti::gaussian< T >::parameters::covariance, and lti::gaussian< T >::parameters::mean.

template<class T>
virtual bool lti::gaussian< T >::parameters::write ( ioHandler handler,
const bool  complete 
) const [inline, virtual]

write the parameters in the given ioHandler

Parameters:
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.
Returns:
true if write was successful

Reimplemented from lti::mathFunction::parameters.

References lti::gaussian< T >::parameters::covariance, and lti::gaussian< T >::parameters::mean.


Member Data Documentation

template<class T>
matrix<T> lti::gaussian< T >::parameters::covariance
template<class T>
vector<T> lti::gaussian< T >::parameters::mean

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

Generated on Sat Apr 10 15:28:21 2010 for LTI-Lib by Doxygen 1.6.1