LeakyIntegratorFunction Class Reference
LeakyIntegrator Function !! More...

Public Member Functions | |
LeakyIntegratorFunction () | |
Default constructor. | |
LeakyIntegratorFunction (const DoubleVector &deltas) | |
Construct a LeakyIntegrator with deltas specified. | |
virtual | ~LeakyIntegratorFunction () |
Destructor. | |
virtual void | apply (DoubleVector &inputs, DoubleVector &outputs) |
Implement the updating method it computes: y(t) <- delta * y(t-1) + (1.0-delta) * inputs. | |
virtual void | clusterSetted () |
resize itself to fit the size of Cluster | |
virtual void | configure (ConfigurationParameters ¶ms, QString prefix) |
Configures the object using a ConfigurationParameters object. | |
virtual void | save (ConfigurationParameters ¶ms, QString prefix) |
Save the actual status of parameters into the ConfigurationParameters object passed. | |
void | zeroingStatus () |
Zeroing the status. | |
Public Attributes | |
DoubleVector | delta |
delta is the leak rate of the function | |
DoubleVector | outprev |
previous outputs |
Detailed Description
LeakyIntegrator Function !!
Definition at line 406 of file liboutputfunctions.h.
Constructor & Destructor Documentation
Default constructor.
Definition at line 490 of file liboutputfunctions.cpp.
LeakyIntegratorFunction | ( | const DoubleVector & | deltas | ) |
Construct a LeakyIntegrator with deltas specified.
Definition at line 495 of file liboutputfunctions.cpp.
References DoubleVector::copyValues(), LeakyIntegratorFunction::delta, LeakyIntegratorFunction::outprev, and DoubleVector::zeroing().
virtual ~LeakyIntegratorFunction | ( | ) | [inline, virtual] |
Destructor.
Definition at line 413 of file liboutputfunctions.h.
Member Function Documentation
void apply | ( | DoubleVector & | inputs, |
DoubleVector & | outputs | ||
) | [virtual] |
Implement the updating method
it computes: y(t) <- delta * y(t-1) + (1.0-delta) * inputs.
Implements OutputFunction.
Definition at line 501 of file liboutputfunctions.cpp.
References DoubleVector::copyValues(), LeakyIntegratorFunction::delta, LeakyIntegratorFunction::outprev, and farsa::subtract().
void clusterSetted | ( | ) | [virtual] |
resize itself to fit the size of Cluster
Reimplemented from OutputFunction.
Definition at line 515 of file liboutputfunctions.cpp.
References OutputFunction::clusterv, LeakyIntegratorFunction::delta, Cluster::numNeurons(), LeakyIntegratorFunction::outprev, DoubleVector::resize(), and DoubleVector::size().
void configure | ( | ConfigurationParameters & | params, |
QString | prefix | ||
) | [virtual] |
Configures the object using a ConfigurationParameters object.
- Parameters:
-
params the configuration parameters object with parameters to use prefix the prefix to use to access the object configuration parameters. This is guaranteed to end with the separator character when called by the factory, so you don't need to add one
Implements ParameterSettableWithConfigureFunction.
Definition at line 522 of file liboutputfunctions.cpp.
References LeakyIntegratorFunction::delta, ConfigurationParameters::getValue(), LeakyIntegratorFunction::outprev, DoubleVector::resize(), and DoubleVector::size().
void save | ( | ConfigurationParameters & | params, |
QString | prefix | ||
) | [virtual] |
Save the actual status of parameters into the ConfigurationParameters object passed.
- Parameters:
-
params the configuration parameters object on which save actual parameters prefix the prefix to use to access the object configuration parameters.
Implements ParameterSettable.
Definition at line 554 of file liboutputfunctions.cpp.
References ConfigurationParameters::createParameter(), LeakyIntegratorFunction::delta, LeakyIntegratorFunction::outprev, DoubleVector::size(), and ConfigurationParameters::startObjectParameters().
void zeroingStatus | ( | ) |
Zeroing the status.
Definition at line 511 of file liboutputfunctions.cpp.
References LeakyIntegratorFunction::outprev, and DoubleVector::zeroing().
Member Data Documentation
delta is the leak rate of the function
Definition at line 442 of file liboutputfunctions.h.
Referenced by LeakyIntegratorFunction::apply(), LeakyIntegratorFunction::clusterSetted(), LeakyIntegratorFunction::configure(), LeakyIntegratorFunction::LeakyIntegratorFunction(), and LeakyIntegratorFunction::save().
previous outputs
Definition at line 444 of file liboutputfunctions.h.
Referenced by LeakyIntegratorFunction::apply(), LeakyIntegratorFunction::clusterSetted(), LeakyIntegratorFunction::configure(), LeakyIntegratorFunction::LeakyIntegratorFunction(), LeakyIntegratorFunction::save(), and LeakyIntegratorFunction::zeroingStatus().
The documentation for this class was generated from the following files:
- nnfw/include/liboutputfunctions.h
- nnfw/src/liboutputfunctions.cpp