WinnerTakeAllFunction Class Reference

WinnerTakeAllFunction. More...

Inheritance diagram for WinnerTakeAllFunction:

List of all members.

Public Member Functions

 WinnerTakeAllFunction (double value=1.0)
 Construct.
virtual ~WinnerTakeAllFunction ()
 Destructor.
virtual void apply (DoubleVector &inputs, DoubleVector &outputs)
 Implement the WinnerTakeAllFunction function.
virtual void configure (ConfigurationParameters &params, QString prefix)
 Configures the object using a ConfigurationParameters object.
virtual void save (ConfigurationParameters &params, QString prefix)
 Save the actual status of parameters into the ConfigurationParameters object passed.
bool setValue (double v)
 Set the value.
double value ()
 Return the value.

Static Public Member Functions

static void describe (QString)
 describe the parameters and subgroups for configure it

Detailed Description

WinnerTakeAllFunction.

Definition at line 38 of file libcompetitivefunctions.h.


Constructor & Destructor Documentation

WinnerTakeAllFunction ( double  value = 1.0)

Construct.

Definition at line 25 of file libcompetitivefunctions.cpp.

References WinnerTakeAllFunction::value().

virtual ~WinnerTakeAllFunction ( ) [inline, virtual]

Destructor.

Definition at line 43 of file libcompetitivefunctions.h.


Member Function Documentation

void apply ( DoubleVector inputs,
DoubleVector outputs 
) [virtual]

Implement the WinnerTakeAllFunction function.

Implements OutputFunction.

Definition at line 39 of file libcompetitivefunctions.cpp.

References farsa::maxIndex(), and DoubleVector::zeroing().

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 44 of file libcompetitivefunctions.cpp.

References ConfigurationParameters::getValue().

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 57 of file libcompetitivefunctions.cpp.

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

bool setValue ( double  v)

Set the value.

Definition at line 30 of file libcompetitivefunctions.cpp.

double value ( )

Return the value.

Definition at line 35 of file libcompetitivefunctions.cpp.

Referenced by WinnerTakeAllFunction::WinnerTakeAllFunction().


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