latest version v1.9 - last update 10 Apr 2010 |
a sign activation function (1.0 if input 0 or positive, -1.0 otherwise) More...
#include <ltiMLP.h>
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 activationFunctor * | clone () const |
virtual const double & | onValue () const |
virtual const double & | offValue () const |
a sign activation function (1.0 if input 0 or positive, -1.0 otherwise)
virtual bool lti::MLP::signFunctor::apply | ( | const dvector & | src, | |
dvector & | output | |||
) | const [inline, virtual] |
the functor operator.
Operates on copy
Implements lti::MLP::activationFunctor.
References lti::genericVector< T >::begin(), lti::genericVector< T >::end(), lti::genericVector< T >::resize(), and lti::genericVector< T >::size().
virtual bool lti::MLP::signFunctor::apply | ( | dvector & | output | ) | const [inline, virtual] |
the functor operator
Implements lti::MLP::activationFunctor.
References lti::genericVector< T >::begin(), and lti::genericVector< T >::end().
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.