WinnerTakeAllFunction. More...
![Inheritance graph](classfarsa_1_1WinnerTakeAllFunction__inherit__graph.png)
Public Member Functions | |
WinnerTakeAllFunction (double value=1.0) | |
Construct. More... | |
virtual | ~WinnerTakeAllFunction () |
Destructor. More... | |
virtual void | apply (DoubleVector &inputs, DoubleVector &outputs) |
Implement the WinnerTakeAllFunction function. More... | |
virtual void | configure (ConfigurationParameters ¶ms, QString prefix) |
Configures the object using a ConfigurationParameters object. More... | |
virtual void | save (ConfigurationParameters ¶ms, QString prefix) |
Save the actual status of parameters into the ConfigurationParameters object passed. More... | |
bool | setValue (double v) |
Set the value. More... | |
double | value () |
Return the value. More... | |
![]() | |
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... | |
![]() | |
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 |
Static Public Member Functions | |
static void | describe (QString) |
describe the parameters and subgroups for configure it More... | |
![]() | |
static void | describe (QString type) |
static QString | fullParameterDescriptionPath (QString type, QString param) |
static QString | fullSubgroupDescriptionPath (QString type, QString sub) |
Additional Inherited Members | |
![]() | |
enum | Property |
![]() | |
AllowMultiple | |
Default | |
IsList | |
IsMandatory | |
![]() | |
static const double | Infinity |
static const int | MaxInteger |
static const int | MinInteger |
![]() | |
virtual void | clusterSetted () |
The method setCluster will call clusterSetted to inform subclasses that the OutputFunction has been inserted into a Cluster. More... | |
![]() | |
void | notifyChangesToParam (QString paramName) |
![]() | |
static Descriptor | addTypeDescription (QString type, QString shortHelp, QString longHelp=QString("")) |
static void | setGraphicalEditor (QString type) |
![]() | |
Cluster * | clusterv |
Cluster on which the OutputFunction is inserted. More... | |
Detailed Description
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().
|
inlinevirtual |
Destructor.
Definition at line 43 of file libcompetitivefunctions.h.
Member Function Documentation
|
virtual |
Implement the WinnerTakeAllFunction function.
Implements OutputFunction.
Definition at line 39 of file libcompetitivefunctions.cpp.
|
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 46 of file libcompetitivefunctions.cpp.
References ConfigurationParameters::getValue().
|
static |
describe the parameters and subgroups for configure it
Definition at line 65 of file libcompetitivefunctions.cpp.
References ParameterSettable::addTypeDescription(), and ParameterSettable::Infinity.
|
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 59 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:
- nnfw/include/libcompetitivefunctions.h
- nnfw/src/libcompetitivefunctions.cpp