ScaleFunction Class Reference

Public Member Functions | |
ScaleFunction (double rate=1.0) | |
Construct. | |
virtual | ~ScaleFunction () |
Destructor. | |
virtual void | apply (DoubleVector &inputs, DoubleVector &outputs) |
Implement the identity function. | |
virtual void | configure (ConfigurationParameters ¶ms, QString prefix) |
Configures the object using a ConfigurationParameters object. | |
virtual bool | derivate (const DoubleVector &x, const DoubleVector &y, DoubleVector &d) const |
return always the rate (an explain of why will be coming soon) | |
virtual void | save (ConfigurationParameters ¶ms, QString prefix) |
Save the actual status of parameters into the ConfigurationParameters object passed. | |
Public Attributes | |
double | rate |
Detailed Description
ScaleFunction scales the inputs vector to the outputs
Definition at line 75 of file liboutputfunctions.h.
Constructor & Destructor Documentation
ScaleFunction | ( | double | rate = 1.0 | ) |
Construct.
Definition at line 54 of file liboutputfunctions.cpp.
virtual ~ScaleFunction | ( | ) | [inline, virtual] |
Destructor.
Definition at line 80 of file liboutputfunctions.h.
Member Function Documentation
void apply | ( | DoubleVector & | inputs, |
DoubleVector & | outputs | ||
) | [virtual] |
Implement the identity function.
Implements OutputFunction.
Definition at line 59 of file liboutputfunctions.cpp.
References farsa::mul().
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 68 of file liboutputfunctions.cpp.
References ConfigurationParameters::getValue().
bool derivate | ( | const DoubleVector & | x, |
const DoubleVector & | y, | ||
DoubleVector & | d | ||
) | const [virtual] |
return always the rate (an explain of why will be coming soon)
Reimplemented from OutputFunction.
Definition at line 63 of file liboutputfunctions.cpp.
References DoubleVector::setAll().
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 81 of file liboutputfunctions.cpp.
References ConfigurationParameters::createParameter(), and ConfigurationParameters::startObjectParameters().
The documentation for this class was generated from the following files:
- nnfw/include/liboutputfunctions.h
- nnfw/src/liboutputfunctions.cpp