Abstract Linker Class. More...

Public Member Functions | |
Linker (Cluster *from, Cluster *to, QString name="unnamed") | |
Construct. | |
Linker (ConfigurationParameters ¶ms, QString prefix) | |
Constructor. | |
void | configureFromVector (QString vectorName) |
Configure on which state vector of 'from' Cluster this Linker is attached to. | |
void | configureToVector (QString vectorName) |
Configure on which state vector of 'to' Cluster this Linker is attached to. | |
Cluster * | from () const |
Return the Cluster From. | |
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. | |
virtual void | save (ConfigurationParameters ¶ms, QString prefix) |
Save the actual status of parameters into the ConfigurationParameters object passed. | |
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. | |
Cluster * | to () const |
Return the Cluster to. | |
![]() | |
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. | |
virtual void | update ()=0 |
Update the object. | |
![]() | |
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) |
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) |
Protected Member Functions | |
DoubleVector & | fromVector () const |
Return a reference to the DoubleVector of 'from' on which this is attached to. | |
DoubleVector & | toVector () const |
Return a reference to the DoubleVector of 'to' on which this is attached to. | |
Additional Inherited Members | |
![]() | |
enum | Property |
![]() | |
AllowMultiple | |
Default | |
IsList | |
IsMandatory | |
![]() | |
static const double | Infinity |
static const int | MaxInteger |
static const int | MinInteger |
![]() | |
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 ParameterSettableInConstructor::addTypeDescription(), ParameterSettable::StringDescriptor::def(), Updatable::describe(), ParameterSettable::Descriptor::describeObject(), ParameterSettable::Descriptor::describeString(), ParameterSettable::StringDescriptor::help(), ParameterSettable::ObjectDescriptor::help(), ParameterSettableInConstructor::IsMandatory, ParameterSettable::ObjectDescriptor::props(), and ParameterSettable::ObjectDescriptor::type().
|
inline |
Return the Cluster From.
Definition at line 45 of file linker.h.
Referenced by NeuralNet::addLinker(), MatrixLinker::disconnect(), Linker::Linker(), NeuralNet::removeLinker(), MatrixLinker::setWeight(), and MatrixLinker::weight().
|
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::size(), 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(), MatrixLinker::disconnect(), Linker::Linker(), NeuralNet::removeLinker(), MatrixLinker::setWeight(), NormLinker::update(), DotLinker::update(), CopyLinker::update(), and MatrixLinker::weight().
|
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::size(), 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