DDECluster Class. More...

Public Member Functions | |
DDECluster (const DoubleVector &coeff, unsigned int numNeurons, QString name="unnamed") | |
Construct a DDECluster setting coefficients as specified. | |
DDECluster (ConfigurationParameters ¶ms, QString prefix) | |
Constructor. | |
virtual | ~DDECluster () |
Destructor. | |
const DoubleVector | getCoeff () |
Return coeffiecients. | |
void | randomize (double, double) |
Randomize Nothing ;-) | |
virtual void | save (ConfigurationParameters ¶ms, QString prefix) |
Save the actual status of parameters into the ConfigurationParameters object passed. | |
void | setCoeff (const DoubleVector &coef) |
Set the coeffiecients. | |
void | update () |
Update the outputs of neurons. | |
![]() | |
Cluster (unsigned int numNeurons, QString name="unnamed") | |
Construct a Cluster. | |
Cluster (ConfigurationParameters ¶ms, QString prefix) | |
Constructor. | |
virtual | ~Cluster () |
Destructor. | |
getStateVectorFuncPtr | getDelegateFor (QString stateVector) |
Return the pointer to function for retrieving the DoubleVector representing the state requested. | |
double | getInput (unsigned int neuron) const |
Get the input of neuron. | |
double | getOutput (unsigned int neuron) const |
Get the output of neuron. | |
DoubleVector & | inputs () |
Get the array of inputs. | |
DoubleVector | inputs () const |
Get the array of inputs. | |
bool | isAccumulate () const |
return true if the Cluster will accumulates inputs | |
bool | needReset () |
Return true if inputs needs a reset. | |
unsigned int | numNeurons () const |
Return the number of neurons (the length of input and output arrays) | |
OutputFunction * | outFunction () const |
Get the Output function. | |
DoubleVector & | outputs () |
Get the array of outputs. | |
DoubleVector | outputs () const |
Get the array of outputs. | |
void | resetInputs () |
Reset the inputs of this cluster; the inputs will be set to zero. | |
void | setAccumulate (bool mode) |
Enable/Disable accumulation mode If accumulation is enabled (true) then linkers attached to this Cluster will never resetInput and accumulates data, otherwise the inputs will be resetted at each step of neural network. | |
void | setAllInputs (double value) |
Set all the inputs with the same value Details... | |
void | setInput (unsigned int neuron, double value) |
Set the input of neuron Details... | |
void | setInputs (const DoubleVector &inputs) |
Set the inputs from the vector given. | |
void | setOutFunction (OutputFunction *up) |
Set the output function for all neurons contained This method create an internal copy of the OutputFunction passed | |
void | setOutput (unsigned int neuron, double value) |
Force the output of the neuron at value specified. | |
void | setOutputs (const DoubleVector &outputs) |
Set the outputs from the vector given. | |
![]() | |
Updatable (QString name="unnamed") | |
Constructor. | |
Updatable (ConfigurationParameters ¶ms, QString prefix) | |
Constructor. | |
virtual | ~Updatable () |
Destructor. | |
QString | name () const |
Return its name. | |
void | setName (QString newname) |
Set the name of Updatable. | |
![]() | |
ParameterSettableInConstructor (ConfigurationParameters &, QString) | |
void | addObserver (RuntimeParameterObserver *obs) |
T | getRuntimeParameter (QString paramName) |
virtual ParameterSettableUI * | getUIManager () |
ParameterSettable () | |
virtual void | postConfigureInitialization () |
void | removeObserver (RuntimeParameterObserver *obs) |
void | setRuntimeParameter (QString paramName, T newvalue) |
QString | typeName () const |
![]() | |
void | addObserver (RuntimeParameterObserver *obs) |
T | getRuntimeParameter (QString paramName) |
void | removeObserver (RuntimeParameterObserver *obs) |
void | setRuntimeParameter (QString paramName, T newvalue) |
QString | typeName () const |
Static Public Member Functions | |
static void | describe (QString type) |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups. | |
![]() | |
static void | describe (QString type) |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups. | |
![]() | |
static void | describe (QString type) |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups. | |
![]() | |
static void | describe (QString type) |
static QString | fullParameterDescriptionPath (QString type, QString param) |
static QString | fullSubgroupDescriptionPath (QString type, QString sub) |
![]() | |
static void | describe (QString type) |
static QString | fullParameterDescriptionPath (QString type, QString param) |
static QString | fullSubgroupDescriptionPath (QString type, QString sub) |
Additional Inherited Members | |
![]() | |
typedef DoubleVector &(* | getStateVectorFuncPtr )(Cluster *) |
Delegate type for retrieving a vector by name (pointer to function) It works in this way: | |
![]() | |
AllowMultiple | |
Default | |
IsList | |
IsMandatory | |
![]() | |
static const double | Infinity |
static const int | MaxInteger |
static const int | MinInteger |
![]() | |
template<class T , DoubleVector &(T::*)() TMethod> | |
void | setDelegateFor (QString vectorName) |
Configure a delegate for a specifing state vector; who implements subclasses of Cluster has to specify a name and the method used to retrieve any state vector that needs to be public (i.e. | |
void | setNeedReset (bool b) |
Set the state of 'needReset' Used by subclasses into update implementation. | |
![]() | |
static Descriptor | addTypeDescription (QString type, QString shortHelp, QString longHelp=QString("")) |
static void | setGraphicalEditor (QString type) |
![]() | |
DoubleVector * | inputdataptr |
Pointer to data Input. | |
DoubleVector * | outputdataptr |
Pointer to data Output. | |
Detailed Description
DDECluster Class.
In this cluster the input/output relation is governed by a Discrete Differential Equation
- Motivation
- Create a Cluster where the outputs dependes on previous value, or in other words on derivative of outputs
- Description
- This Cluster calculate the outputs accordlying with follow equation:
y(t) <- a0 + a1*f(x) + a2*x(t) + a3*y(t-1) + a4*y'(t-1) + a5*y''(t-1) + a6*y'''(t-1) + ...
NOTE: A simply leaky-integrator is possible by settings coefficients in the following way:
a0 <- 0.0 ; a1 <- delta ; a2 <- 0.0 ; a3 <- 1.0-delta
getting::
y(t) <- (delta)*f(x) + (1.0-delta)*y(t-1)
- Warnings
Definition at line 45 of file ddecluster.h.
Constructor & Destructor Documentation
DDECluster | ( | const DoubleVector & | coeff, |
unsigned int | numNeurons, | ||
QString | name = "unnamed" |
||
) |
Construct a DDECluster setting coefficients as specified.
Definition at line 24 of file ddecluster.cpp.
References DDECluster::setCoeff().
DDECluster | ( | ConfigurationParameters & | params, |
QString | prefix | ||
) |
Constructor.
Definition at line 29 of file ddecluster.cpp.
References ConfigurationParameters::getValue(), and DoubleVector::resize().
|
virtual |
Destructor.
Definition at line 46 of file ddecluster.cpp.
Member Function Documentation
|
static |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups.
Definition at line 148 of file ddecluster.cpp.
References ParameterSettableInConstructor::addTypeDescription(), ParameterSettable::RealDescriptor::def(), Cluster::describe(), ParameterSettable::Descriptor::describeReal(), ParameterSettable::RealDescriptor::help(), ParameterSettableInConstructor::IsList, ParameterSettableInConstructor::IsMandatory, and ParameterSettable::RealDescriptor::props().
|
inline |
Return coeffiecients.
Definition at line 56 of file ddecluster.h.
|
inlinevirtual |
|
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 136 of file ddecluster.cpp.
References ConfigurationParameters::createParameter(), Cluster::save(), DoubleVector::size(), and ConfigurationParameters::startObjectParameters().
void setCoeff | ( | const DoubleVector & | coef | ) |
Set the coeffiecients.
Definition at line 50 of file ddecluster.cpp.
References Cluster::numNeurons(), and DoubleVector::size().
Referenced by DDECluster::DDECluster().
|
virtual |
Update the outputs of neurons.
Implements Updatable.
Definition at line 59 of file ddecluster.cpp.
References OutputFunction::apply(), DoubleVector::copyValues(), Cluster::inputs(), Cluster::outFunction(), Cluster::outputs(), DoubleVector::setAll(), Cluster::setNeedReset(), DoubleVector::size(), and DoubleVector::zeroing().
The documentation for this class was generated from the following files:
- nnfw/include/ddecluster.h
- nnfw/src/ddecluster.cpp