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

lti::MLP::sigmoidFunctor Class Reference

a sigmoid activation function More...

#include <ltiMLP.h>

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

List of all members.

Public Member Functions

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

Detailed Description

a sigmoid activation function


Constructor & Destructor Documentation

lti::MLP::sigmoidFunctor::sigmoidFunctor ( const double &  theSlope  )  [inline]

constructor using explicit sigmoid slope

lti::MLP::sigmoidFunctor::sigmoidFunctor (  )  [inline]

constructor of a sigmoid with slope 1.0

Referenced by clone().


Member Function Documentation

virtual bool lti::MLP::sigmoidFunctor::apply ( const dvector src,
dvector output 
) const [inline, virtual]
virtual bool lti::MLP::sigmoidFunctor::apply ( dvector output  )  const [inline, virtual]
virtual activationFunctor* lti::MLP::sigmoidFunctor::clone (  )  const [inline, virtual]

return a copy of this functor

Implements lti::MLP::activationFunctor.

References sigmoidFunctor().

virtual bool lti::MLP::sigmoidFunctor::deriv ( dvector output  )  const [inline, virtual]
virtual const double& lti::MLP::sigmoidFunctor::offValue (  )  const [inline, virtual]

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

Implements lti::MLP::activationFunctor.

virtual const double& lti::MLP::sigmoidFunctor::onValue (  )  const [inline, virtual]

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

Implements lti::MLP::activationFunctor.

virtual bool lti::MLP::sigmoidFunctor::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 from lti::MLP::activationFunctor.

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

virtual bool lti::MLP::sigmoidFunctor::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 from lti::MLP::activationFunctor.

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:55 2010 for LTI-Lib by Doxygen 1.6.1