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

lti::MLP::signFunctor Class Reference

a sign activation function (1.0 if input 0 or positive, -1.0 otherwise) More...

#include <ltiMLP.h>

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

List of all members.

Public Member Functions

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

Detailed Description

a sign activation function (1.0 if input 0 or positive, -1.0 otherwise)


Member Function Documentation

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

return a copy of this functor

Implements lti::MLP::activationFunctor.

virtual bool lti::MLP::signFunctor::deriv ( dvector output  )  const [inline, virtual]

the derivative of the functor (will return 1.0 to allow learning)

Implements lti::MLP::activationFunctor.

References lti::genericVector< T >::fill().

virtual const double& lti::MLP::signFunctor::offValue (  )  const [inline, virtual]

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

Implements lti::MLP::activationFunctor.

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

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

Implements lti::MLP::activationFunctor.


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