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

lti::MLP::activationFunctor Class Reference

Parent class for all activation function functors. More...

#include <ltiMLP.h>

Inheritance diagram for lti::MLP::activationFunctor:
Inheritance graph
[legend]
Collaboration diagram for lti::MLP::activationFunctor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual bool apply (dvector &output) const =0
virtual bool apply (const dvector &src, dvector &output) const =0
virtual bool deriv (dvector &output) const =0
virtual activationFunctorclone () const =0
virtual const double & onValue () const =0
virtual const double & offValue () const =0
virtual bool write (ioHandler &handler, const bool complete=true) const
virtual bool read (ioHandler &handler, const bool complete=true)

Detailed Description

Parent class for all activation function functors.


Member Function Documentation

virtual bool lti::MLP::activationFunctor::apply ( const dvector src,
dvector output 
) const [pure virtual]

the functor operator.

Operates on copy

Implemented in lti::MLP::linearActFunctor, lti::MLP::signFunctor, and lti::MLP::sigmoidFunctor.

virtual bool lti::MLP::activationFunctor::apply ( dvector output  )  const [pure virtual]

the functor operator.

Operates on place, applying the function to each element of the vector

Implemented in lti::MLP::linearActFunctor, lti::MLP::signFunctor, and lti::MLP::sigmoidFunctor.

virtual activationFunctor* lti::MLP::activationFunctor::clone (  )  const [pure virtual]
virtual bool lti::MLP::activationFunctor::deriv ( dvector output  )  const [pure virtual]
virtual const double& lti::MLP::activationFunctor::offValue (  )  const [pure virtual]

return value used to represent "false" or "off"

Implemented in lti::MLP::linearActFunctor, lti::MLP::signFunctor, and lti::MLP::sigmoidFunctor.

virtual const double& lti::MLP::activationFunctor::onValue (  )  const [pure virtual]

return value used to represent "true" or "on"

Implemented in lti::MLP::linearActFunctor, lti::MLP::signFunctor, and lti::MLP::sigmoidFunctor.

virtual bool lti::MLP::activationFunctor::read ( ioHandler handler,
const bool  complete = true 
) [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 in lti::MLP::sigmoidFunctor.

References lti::ioHandler::readBegin(), and lti::ioHandler::readEnd().

virtual bool lti::MLP::activationFunctor::write ( ioHandler handler,
const bool  complete = true 
) 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 in lti::MLP::sigmoidFunctor.

References lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().


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

Generated on Sat Apr 10 15:26:54 2010 for LTI-Lib by Doxygen 1.6.1