FakeCluster Class. More...

Inheritance diagram for FakeCluster:

List of all members.

Public Member Functions

 FakeCluster (unsigned int size, QString name="unnamed")
 Construct a FakeCluster.
 FakeCluster (ConfigurationParameters &params, QString prefix)
 Construct from ConfigurationParameters.
virtual ~FakeCluster ()
 Destructor.
void randomize (double min, double max)
 Randomize ?!?! it do nothings.
virtual void save (ConfigurationParameters &params, 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]

Randomize ?!?! it do nothings.

Implements Cluster.

Definition at line 46 of file fakecluster.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.

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: