Abstract Linker Class. More...
Public Member Functions | |
Linker (Cluster *from, Cluster *to, QString name="unnamed") | |
Construct. More... | |
Linker (ConfigurationParameters ¶ms, QString prefix) | |
Constructor. More... | |
void | configureFromVector (QString vectorName) |
Configure on which state vector of 'from' Cluster this Linker is attached to. More... | |
void | configureToVector (QString vectorName) |
Configure on which state vector of 'to' Cluster this Linker is attached to. More... | |
Cluster * | from () const |
Return the Cluster From. More... | |
virtual void | randomize (double min, double max)=0 |
Randomize the parameters of the Linker The parameters randomized by this method will be specified by sub-classes. More... | |
virtual void | save (ConfigurationParameters ¶ms, QString prefix) |
Save the actual status of parameters into the ConfigurationParameters object passed. More... | |
virtual unsigned int | size () const =0 |
Returns the 'size' of the linker The actual means of 'size' will be specified by sub-classes that implementes concrete linkers. More... | |
Cluster * | to () const |
Return the Cluster to. More... | |
Public Member Functions inherited from Updatable | |
Updatable (QString name="unnamed") | |
Constructor. More... | |
Updatable (ConfigurationParameters ¶ms, QString prefix) | |
Constructor. More... | |
virtual | ~Updatable () |
Destructor. More... | |
QString | name () const |
Return its name. More... | |
void | setName (QString newname) |
Set the name of Updatable. More... | |
virtual void | update ()=0 |
Update the object. More... | |
Public Member Functions inherited from ParameterSettableInConstructor | |
ParameterSettableInConstructor (ConfigurationParameters &, QString) | |
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 |
Static Public Member Functions | |
static void | describe (QString type) |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups. More... | |
Static Public Member Functions inherited from Updatable | |
static void | describe (QString type) |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups. More... | |
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) |
Protected Member Functions | |
DoubleVector & | fromVector () const |
Return a reference to the DoubleVector of 'from' on which this is attached to. More... | |
DoubleVector & | toVector () const |
Return a reference to the DoubleVector of 'to' on which this is attached to. More... | |
Protected Member Functions inherited from ParameterSettable | |
void | notifyChangesToParam (QString paramName) |
Additional Inherited Members | |
Public Types inherited from ParameterSettable | |
enum | Property |
Public Attributes inherited from ParameterSettable | |
AllowMultiple | |
Default | |
IsList | |
IsMandatory | |
Static Public Attributes inherited from ParameterSettable | |
static const double | Infinity |
static const int | MaxInteger |
static const int | MinInteger |
Static Protected Member Functions inherited from ParameterSettable | |
static Descriptor | addTypeDescription (QString type, QString shortHelp, QString longHelp=QString("")) |
static void | setGraphicalEditor (QString type) |
Detailed Description
Abstract Linker Class.
This define the common interface among Linkers
Constructor & Destructor Documentation
Construct.
Definition at line 25 of file linker.cpp.
References Linker::from(), Cluster::getDelegateFor(), and Linker::to().
Linker | ( | ConfigurationParameters & | params, |
QString | prefix | ||
) |
Constructor.
Definition at line 35 of file linker.cpp.
References Cluster::getDelegateFor(), ConfigurationParameters::getObjectFromParameter(), and ConfigurationParameters::getValue().
Member Function Documentation
|
inline |
|
inline |
|
static |
Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups.
Definition at line 72 of file linker.cpp.
References ParameterSettable::addTypeDescription(), Updatable::describe(), and ParameterSettable::IsMandatory.
|
inline |
Return the Cluster From.
Definition at line 45 of file linker.h.
Referenced by NeuralNet::addLinker(), Linker::Linker(), and NeuralNet::removeLinker().
|
inlineprotected |
Return a reference to the DoubleVector of 'from' on which this is attached to.
Definition at line 89 of file linker.h.
Referenced by CopyLinker::CopyLinker(), NormLinker::update(), DotLinker::update(), and CopyLinker::update().
|
pure virtual |
Randomize the parameters of the Linker
The parameters randomized by this method will be specified by sub-classes.
Implemented in CopyLinker, and MatrixLinker.
|
virtual |
Save the actual status of parameters into the ConfigurationParameters object passed.
This saves the name property, remember to call this in child classes
- Parameters
-
params the configuration parameters object on which save actual parameters prefix the prefix to use to access the object configuration parameters.
Reimplemented from Updatable.
Reimplemented in MatrixLinker, CopyLinker, DotLinker, and NormLinker.
Definition at line 58 of file linker.cpp.
References ConfigurationParameters::createParameter(), Updatable::save(), and ConfigurationParameters::startObjectParameters().
Referenced by CopyLinker::save(), MatrixLinker::save(), and NeuralNet::save().
|
pure virtual |
Returns the 'size' of the linker
The actual means of 'size' will be specified by sub-classes that implementes concrete linkers.
Implemented in CopyLinker, and MatrixLinker.
|
inline |
Return the Cluster to.
Definition at line 49 of file linker.h.
Referenced by NeuralNet::addLinker(), Linker::Linker(), NeuralNet::removeLinker(), NormLinker::update(), DotLinker::update(), and CopyLinker::update().
|
inlineprotected |
Return a reference to the DoubleVector of 'to' on which this is attached to.
Definition at line 93 of file linker.h.
Referenced by CopyLinker::CopyLinker(), NormLinker::update(), DotLinker::update(), and CopyLinker::update().
The documentation for this class was generated from the following files:
- nnfw/include/linker.h
- nnfw/src/linker.cpp