CompositeFunction Class Reference

Composite Function !! More...

Inheritance diagram for CompositeFunction:

List of all members.

Public Member Functions

 CompositeFunction ()
 Default constructor.
 CompositeFunction (OutputFunction *f, OutputFunction *g)
 Construct a Composite.
virtual ~CompositeFunction ()
 Destructor.
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.
virtual void clusterSetted ()
 recursive call setCluster on first and second function setted
virtual void configure (ConfigurationParameters &params, QString prefix)
 Configures the object using a ConfigurationParameters object.
OutputFunctiongetFirstFunction ()
 Return the first function of CompositeFunction.
OutputFunctiongetSecondFunction ()
 Return the second function of CompositeFunction.
virtual void save (ConfigurationParameters &params, QString prefix)
 Save the actual status of parameters into the ConfigurationParameters object passed.
bool setFirstFunction (OutputFunction *f)
 Set the first function of CompositeFunction.
bool setSecondFunction (OutputFunction *g)
 Set the second function of CompositeFunction.

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 615 of file liboutputfunctions.cpp.

Construct a Composite.

Definition at line 619 of file liboutputfunctions.cpp.

~CompositeFunction ( ) [virtual]

Destructor.

Definition at line 623 of file liboutputfunctions.cpp.


Member Function Documentation

void apply ( DoubleVector inputs,
DoubleVector outputs 
) [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 627 of file liboutputfunctions.cpp.

void clusterSetted ( ) [virtual]

recursive call setCluster on first and second function setted

Reimplemented from OutputFunction.

Definition at line 652 of file liboutputfunctions.cpp.

References OutputFunction::clusterv, Cluster::numNeurons(), and DoubleVector::resize().

void configure ( ConfigurationParameters params,
QString  prefix 
) [virtual]

Configures the object using a ConfigurationParameters object.

Parameters:
paramsthe configuration parameters object with parameters to use
prefixthe 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 658 of file liboutputfunctions.cpp.

References ConfigurationParameters::getObjectFromParameter().

OutputFunction * getFirstFunction ( )

Return the first function of CompositeFunction.

Definition at line 638 of file liboutputfunctions.cpp.

OutputFunction * getSecondFunction ( )

Return the second function of CompositeFunction.

Definition at line 648 of file liboutputfunctions.cpp.

void save ( ConfigurationParameters params,
QString  prefix 
) [virtual]

Save the actual status of parameters into the ConfigurationParameters object passed.

Parameters:
paramsthe configuration parameters object on which save actual parameters
prefixthe prefix to use to access the object configuration parameters.

Implements ParameterSettable.

Definition at line 669 of file liboutputfunctions.cpp.

References ConfigurationParameters::createParameter(), and ConfigurationParameters::startObjectParameters().

bool setFirstFunction ( OutputFunction f)

Set the first function of CompositeFunction.

Definition at line 632 of file liboutputfunctions.cpp.

References OutputFunction::clusterv.

bool setSecondFunction ( OutputFunction g)

Set the second function of CompositeFunction.

Definition at line 642 of file liboutputfunctions.cpp.

References OutputFunction::clusterv.


The documentation for this class was generated from the following files: