FakeCluster Class Reference
FakeCluster Class. More...

Public Member Functions | |
FakeCluster (unsigned int size, QString name="unnamed") | |
Construct a FakeCluster. | |
FakeCluster (ConfigurationParameters ¶ms, QString prefix) | |
Construct from ConfigurationParameters. | |
virtual | ~FakeCluster () |
Destructor. | |
void | randomize (double min, double max) |
Randomize ?!?! it do nothings. | |
virtual void | save (ConfigurationParameters ¶ms, QString prefix) |
Save the actual status of parameters into the ConfigurationParameters object passed. | |
void | update () |
Update ;-) It's do nothing !! | |
Static Public Member Functions | |
static void | describe (QString type) |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups. |
Detailed Description
FakeCluster Class.
The FakeCluster is a Cluster without neurons, it's like an array ! :-)
- Motivation
- Description
- The FakeCluster implemented the Cluster Interface so it can be inserted inside a BaseNeuralNet, but it doesn't contains neurons, but it contains a simple vector with values and inputs and outputs are alias name for this vector of data.
It's very useful for inputs layers that don't needs true neurons but only a vector where registry the sensors values.
- Warnings
- Due to fact that outputs() are simple an alias, or more precisly a VectorData view, of inputs(), this means that a call to resetInputs() method also resets the outputs!! In general, all methods that modify inputs also modify outputs and viceversa.
Definition at line 48 of file fakecluster.h.
Constructor & Destructor Documentation
FakeCluster | ( | unsigned int | size, |
QString | name = "unnamed" |
||
) |
Construct a FakeCluster.
Definition at line 25 of file fakecluster.cpp.
References Cluster::inputdataptr, and Cluster::outputdataptr.
FakeCluster | ( | ConfigurationParameters & | params, |
QString | prefix | ||
) |
Construct from ConfigurationParameters.
Definition at line 31 of file fakecluster.cpp.
References Cluster::inputdataptr, and Cluster::outputdataptr.
~FakeCluster | ( | ) | [virtual] |
Destructor.
Definition at line 38 of file fakecluster.cpp.
Member Function Documentation
void describe | ( | QString | type | ) | [static] |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups.
Reimplemented from Cluster.
Definition at line 56 of file fakecluster.cpp.
References ParameterSettable::addTypeDescription().
void randomize | ( | double | min, |
double | max | ||
) | [virtual] |
void save | ( | ConfigurationParameters & | params, |
QString | prefix | ||
) | [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.
Reimplemented from Cluster.
Definition at line 50 of file fakecluster.cpp.
References ConfigurationParameters::startObjectParameters().
void update | ( | ) | [virtual] |
Update ;-) It's do nothing !!
Implements Updatable.
Definition at line 41 of file fakecluster.cpp.
References Cluster::setNeedReset().
The documentation for this class was generated from the following files:
- nnfw/include/fakecluster.h
- nnfw/src/fakecluster.cpp