latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class entropyFunctor More...
#include <ltiEntropyFunctor.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (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 | |
bool | rowWise |
bool | normalize |
the parameters for the class entropyFunctor
lti::entropyFunctor< T >::parameters::parameters | ( | void | ) | [inline] |
default constructor
Reimplemented from lti::statisticsFunctor::parameters.
References lti::entropyFunctor< T >::parameters::normalize, and lti::entropyFunctor< T >::parameters::rowWise.
Referenced by lti::entropyFunctor< T >::parameters::clone().
lti::entropyFunctor< T >::parameters::parameters | ( | const parameters & | other | ) | [inline] |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::statisticsFunctor::parameters.
References lti::entropyFunctor< T >::parameters::copy().
lti::entropyFunctor< T >::parameters::~parameters | ( | ) | [inline, virtual] |
destructor
Reimplemented from lti::statisticsFunctor::parameters.
virtual functor::parameters* lti::entropyFunctor< T >::parameters::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::statisticsFunctor::parameters.
References lti::entropyFunctor< T >::parameters::parameters().
parameters& lti::entropyFunctor< T >::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(), lti::entropyFunctor< T >::parameters::normalize, and lti::entropyFunctor< T >::parameters::rowWise.
Referenced by lti::entropyFunctor< T >::parameters::parameters().
const char* lti::entropyFunctor< T >::parameters::getTypeName | ( | void | ) | const [inline, virtual] |
returns name of this type
Reimplemented from lti::statisticsFunctor::parameters.
virtual bool lti::entropyFunctor< T >::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 written, otherwise only the data block will be written. |
Reimplemented from lti::functor::parameters.
References lti::entropyFunctor< T >::parameters::normalize, lti::ioHandler::readBegin(), lti::ioHandler::readEnd(), and lti::entropyFunctor< T >::parameters::rowWise.
virtual bool lti::entropyFunctor< T >::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::entropyFunctor< T >::parameters::normalize, lti::entropyFunctor< T >::parameters::rowWise, lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().
bool lti::entropyFunctor< T >::parameters::normalize |
if false, it will be assume that the matrices or vectors are already normalized, and can be considered directly as probability distributions (which sum is 1.0).
If true, the vectors and matrices will be "normalized" first, in an efficient way. Default value: false
Referenced by lti::entropyFunctor< T >::parameters::copy(), lti::entropyFunctor< T >::parameters::parameters(), lti::entropyFunctor< T >::parameters::read(), and lti::entropyFunctor< T >::parameters::write().
bool lti::entropyFunctor< T >::parameters::rowWise |
If this flag is true, the entropy computation will be row-wise, i.e.
the result will contain the entropy of the rows. This is much faster than column-wise, since data do not have to be copied. Default value: true
Referenced by lti::entropyFunctor< T >::parameters::copy(), lti::entropyFunctor< T >::parameters::parameters(), lti::entropyFunctor< T >::parameters::read(), and lti::entropyFunctor< T >::parameters::write().