Public Member Functions | |
GaussFunction (double centre=0.0, double variance=1.0, double maxvaule=1.0) | |
Construct. More... | |
virtual | ~GaussFunction () |
Destructor. More... | |
virtual void | apply (DoubleVector &inputs, DoubleVector &outputs) |
Implement the Gaussian function. More... | |
virtual void | configure (ConfigurationParameters ¶ms, QString prefix) |
Configures the object using a ConfigurationParameters object. More... | |
virtual bool | derivate (const DoubleVector &x, const DoubleVector &y, DoubleVector &d) const |
derivate of Gauss function More... | |
virtual void | save (ConfigurationParameters ¶ms, QString prefix) |
Save the actual status of parameters into the ConfigurationParameters object passed. More... | |
bool | setVariance (double v) |
Set the Variance. More... | |
double | variance () |
Return the variance. 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... | |
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 |
Public Attributes | |
double | centre |
Centre of GaussFunction. More... | |
double | max |
Maximum value of GaussFunction. More... | |
Public Attributes inherited from ParameterSettable | |
AllowMultiple | |
Default | |
IsList | |
IsMandatory | |
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) |
Static Public Attributes inherited from ParameterSettable | |
static const double | Infinity |
static const int | MaxInteger |
static const int | MinInteger |
Protected Member Functions inherited from OutputFunction | |
virtual void | clusterSetted () |
The method setCluster will call clusterSetted to inform subclasses that the OutputFunction has been inserted into a Cluster. More... | |
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
Definition at line 37 of file libradialfunctions.h.
Constructor & Destructor Documentation
GaussFunction | ( | double | centre = 0.0 , |
double | variance = 1.0 , |
||
double | maxvaule = 1.0 |
||
) |
Construct.
Definition at line 24 of file libradialfunctions.cpp.
References GaussFunction::centre, GaussFunction::max, and GaussFunction::variance().
|
inlinevirtual |
Destructor.
Definition at line 42 of file libradialfunctions.h.
Member Function Documentation
|
virtual |
Implement the Gaussian function.
Implements OutputFunction.
Definition at line 42 of file libradialfunctions.cpp.
References GaussFunction::centre, and GaussFunction::max.
|
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 58 of file libradialfunctions.cpp.
References GaussFunction::centre, ConfigurationParameters::getValue(), and GaussFunction::max.
|
virtual |
derivate of Gauss function
Reimplemented from OutputFunction.
Definition at line 50 of file libradialfunctions.cpp.
References GaussFunction::centre.
|
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 93 of file libradialfunctions.cpp.
References GaussFunction::centre, ConfigurationParameters::createParameter(), GaussFunction::max, and ConfigurationParameters::startObjectParameters().
bool setVariance | ( | double | v | ) |
Set the Variance.
Definition at line 32 of file libradialfunctions.cpp.
double variance | ( | ) |
Return the variance.
Definition at line 38 of file libradialfunctions.cpp.
Referenced by GaussFunction::GaussFunction().
Member Data Documentation
double centre |
Centre of GaussFunction.
Definition at line 71 of file libradialfunctions.h.
Referenced by GaussFunction::apply(), GaussFunction::configure(), GaussFunction::derivate(), GaussFunction::GaussFunction(), and GaussFunction::save().
double max |
Maximum value of GaussFunction.
Definition at line 73 of file libradialfunctions.h.
Referenced by GaussFunction::apply(), GaussFunction::configure(), GaussFunction::GaussFunction(), and GaussFunction::save().
The documentation for this class was generated from the following files:
- nnfw/include/libradialfunctions.h
- nnfw/src/libradialfunctions.cpp