Composite Function !! More...
Public Member Functions | |
CompositeFunction () | |
Default constructor. More... | |
CompositeFunction (OutputFunction *f, OutputFunction *g) | |
Construct a Composite. More... | |
virtual | ~CompositeFunction () |
Destructor. More... | |
virtual void | apply (DoubleVector &inputs, DoubleVector &outputs) |
Implement the updating method it computes: y <- second( first( input, mid ), outputs ) where mid is a private vector that traces the outputs of first function. More... | |
virtual void | clusterSetted () |
recursive call setCluster on first and second function setted More... | |
virtual void | configure (ConfigurationParameters ¶ms, QString prefix) |
Configures the object using a ConfigurationParameters object. More... | |
OutputFunction * | getFirstFunction () |
Return the first function of CompositeFunction. More... | |
OutputFunction * | getSecondFunction () |
Return the second function of CompositeFunction. More... | |
virtual void | save (ConfigurationParameters ¶ms, QString prefix) |
Save the actual status of parameters into the ConfigurationParameters object passed. More... | |
bool | setFirstFunction (OutputFunction *f) |
Set the first function of CompositeFunction. More... | |
bool | setSecondFunction (OutputFunction *g) |
Set the second function of CompositeFunction. More... | |
Public Member Functions inherited from OutputFunction | |
OutputFunction () | |
Constructor. More... | |
virtual | ~OutputFunction () |
Destructor. More... | |
double | apply (double input) |
Calculate the outputs of a single neuron. More... | |
virtual bool | derivate (const DoubleVector &inputs, const DoubleVector &outputs, DoubleVector &derivates) const |
Compute the derivate of the function represent Given the input of neurons and the corresponding output of neurons, it calculate the derivate. More... | |
void | setCluster (Cluster *cl) |
Set the Cluster which it is inserted This is automatically called, and in normal case you don't have to call it directly. More... | |
Public Member Functions inherited from ParameterSettable | |
void | addObserver (RuntimeParameterObserver *obs) |
T | getRuntimeParameter (QString paramName) |
virtual ParameterSettableUI * | getUIManager () |
virtual void | postConfigureInitialization () |
void | removeObserver (RuntimeParameterObserver *obs) |
void | setRuntimeParameter (QString paramName, T newvalue) |
QString | typeName () const |
Additional Inherited Members | |
Public Types inherited from ParameterSettable | |
enum | Property |
Static Public Member Functions inherited from ParameterSettable | |
static void | describe (QString type) |
static QString | fullParameterDescriptionPath (QString type, QString param) |
static QString | fullSubgroupDescriptionPath (QString type, QString sub) |
Public Attributes inherited from ParameterSettable | |
AllowMultiple | |
Default | |
IsList | |
IsMandatory | |
Static Public Attributes inherited from ParameterSettable | |
static const double | Infinity |
static const int | MaxInteger |
static const int | MinInteger |
Protected Member Functions inherited from ParameterSettable | |
void | notifyChangesToParam (QString paramName) |
Static Protected Member Functions inherited from ParameterSettable | |
static Descriptor | addTypeDescription (QString type, QString shortHelp, QString longHelp=QString("")) |
static void | setGraphicalEditor (QString type) |
Protected Attributes inherited from OutputFunction | |
Cluster * | clusterv |
Cluster on which the OutputFunction is inserted. More... | |
Detailed Description
Composite Function !!
- Note
- Component OutputFunction objects are destroyed by the CompositeFunction object to which they belong.
Definition at line 493 of file liboutputfunctions.h.
Constructor & Destructor Documentation
Default constructor.
Definition at line 619 of file liboutputfunctions.cpp.
CompositeFunction | ( | OutputFunction * | f, |
OutputFunction * | g | ||
) |
Construct a Composite.
Definition at line 623 of file liboutputfunctions.cpp.
|
virtual |
Destructor.
Definition at line 627 of file liboutputfunctions.cpp.
Member Function Documentation
|
virtual |
Implement the updating method
it computes: y <- second( first( input, mid ), outputs )
where mid is a private vector that traces the outputs of first function.
Implements OutputFunction.
Definition at line 631 of file liboutputfunctions.cpp.
|
virtual |
recursive call setCluster on first and second function setted
Reimplemented from OutputFunction.
Definition at line 656 of file liboutputfunctions.cpp.
References OutputFunction::clusterv, and Cluster::numNeurons().
|
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 662 of file liboutputfunctions.cpp.
References ConfigurationParameters::getObjectFromGroup().
OutputFunction * getFirstFunction | ( | ) |
Return the first function of CompositeFunction.
Definition at line 642 of file liboutputfunctions.cpp.
OutputFunction * getSecondFunction | ( | ) |
Return the second function of CompositeFunction.
Definition at line 652 of file liboutputfunctions.cpp.
|
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 673 of file liboutputfunctions.cpp.
References ConfigurationParameters::createParameter(), and ConfigurationParameters::startObjectParameters().
bool setFirstFunction | ( | OutputFunction * | f | ) |
Set the first function of CompositeFunction.
Definition at line 636 of file liboutputfunctions.cpp.
References OutputFunction::clusterv.
bool setSecondFunction | ( | OutputFunction * | g | ) |
Set the second function of CompositeFunction.
Definition at line 646 of file liboutputfunctions.cpp.
References OutputFunction::clusterv.
The documentation for this class was generated from the following files:
- nnfw/include/liboutputfunctions.h
- nnfw/src/liboutputfunctions.cpp