#include <CenterNeuron.h>
Inheritance diagram for CenterNeuron:
Public Member Functions | |
CenterNeuron (int label, int dimension) | |
Constructs a center with the given label and with the center point a random point in the given dimensional space. | |
CenterNeuron (int label, Vector center) | |
Constructs a center with the given label and given center. | |
CenterNeuron (int label, int dimension, real center[]) | |
Constructs a center with the given label and given center. | |
virtual | ~CenterNeuron () |
Vector | getCenter () const |
Returns the center point. | |
virtual void | setCenter (Vector center) |
Sets the center point. | |
virtual void | setCenter (real center[]) |
Sets the center point. | |
virtual void | connect (Neuron *from) |
Sets the center-neuron to receive as input the output of the given neuron. | |
virtual | operator std::string () const |
Neuron::string(). | |
virtual const char * | getClassName () const |
Returns "CenterNeuron". | |
virtual void | setActivationFunction (ActivationFunction f, ActivationFunction df) |
Sets the activation function of the neuron and its derivative. | |
virtual uint | getDimension () const |
The dimension of the center. | |
Protected Member Functions | |
virtual void | _recacheOutput () const |
Neuron::_recacheOutput. | |
virtual void | _recacheError () const |
Neuron::_recacheError. | |
Protected Attributes | |
real * | _center |
The center point. | |
int | _dimension |
The dimension of the center point = the size of the input vector. | |
ActivationFunction | _dActivationFunction |
Derivative of the activation function. |
Neurons of this type have a "center" which is a D-dimensional point in space, where D = the number of inputs taken by the neuron. The activation of this neuron is the euclidean distance between the input vector and the center point. The output of this neuron is typically the result of the gaussian distribution function applied to the activation
|
Constructs a center with the given label and with the center point a random point in the given dimensional space.
|
|
Constructs a center with the given label and given center.
|
|
Constructs a center with the given label and given center.
|
|
|
|
Implements Neuron. |
|
Implements Neuron. |
|
Sets the center-neuron to receive as input the output of the given neuron.
|
|
Returns the center point.
|
|
Returns "CenterNeuron".
Implements Neuron. |
|
The dimension of the center.
|
|
Neuron::string().
Reimplemented from Neuron. |
|
Sets the activation function of the neuron and its derivative.
|
|
Sets the center point.
|
|
Sets the center point.
|
|
The center point.
|
|
Derivative of the activation function. Used for gradient descent rule based updation of weights and centers. Not yet implemented |
|
The dimension of the center point = the size of the input vector.
|