GPLIB++
|
The base class for all neurons in a neural network. More...
#include <GeneralNeuron.h>
Public Member Functions | |
virtual double | CalcDeriv (const double input)=0 |
Calculate the derivative of the activation function, at point input. More... | |
virtual double | GetNet ()=0 |
Get the net output before application of the activation function. More... | |
virtual double | GetDelta ()=0 |
Get delta for the weight correction formula. More... | |
virtual void | SetDelta (const double d)=0 |
Set delta. More... | |
virtual void | SetBias (const double b)=0 |
Set the bias. More... | |
virtual double | GetBias ()=0 |
Get the bias. More... | |
virtual const std::vector < double > & | GetWeights ()=0 |
Access function for the weights. More... | |
virtual std::vector< double > & | SetWeights ()=0 |
virtual const std::vector < double > & | GetOldDelta ()=0 |
Vector valued delta for the momentum adaptation scheme. More... | |
virtual std::vector< double > & | SetOldDelta ()=0 |
virtual const GeneralLinearCombiner::tinvector & | GetInput ()=0 |
Get the pointers to the input neurons. More... | |
double | GetOutput () |
Get the output given the current weights. More... | |
double | GetLastOutput () |
Get the last result from calling GetOutput, needed during adaptation. More... | |
virtual void | SetInput (const GeneralLinearCombiner::tinvector &input) |
Set pointers to the input. More... | |
GeneralNeuron () | |
virtual | ~GeneralNeuron () |
The base class for all neurons in a neural network.
GeneralNeuron implements some common functionality, but mostly abstract base classes to define a common interface for all neurons
Definition at line 14 of file GeneralNeuron.h.
|
inline |
Definition at line 57 of file GeneralNeuron.h.
|
inlinevirtual |
Definition at line 60 of file GeneralNeuron.h.
|
pure virtual |
Calculate the derivative of the activation function, at point input.
Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.
|
pure virtual |
Get the bias.
Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.
|
pure virtual |
Get delta for the weight correction formula.
Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.
|
pure virtual |
Get the pointers to the input neurons.
Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.
|
inline |
Get the last result from calling GetOutput, needed during adaptation.
Definition at line 49 of file GeneralNeuron.h.
|
pure virtual |
Get the net output before application of the activation function.
Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.
|
pure virtual |
Vector valued delta for the momentum adaptation scheme.
Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.
|
inline |
Get the output given the current weights.
Definition at line 43 of file GeneralNeuron.h.
|
pure virtual |
Access function for the weights.
Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.
|
pure virtual |
Set the bias.
Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.
|
pure virtual |
Set delta.
Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.
|
inlinevirtual |
Set pointers to the input.
Reimplemented in gplib::SigmoidalNeuron.
Definition at line 54 of file GeneralNeuron.h.
|
pure virtual |
Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.
|
pure virtual |
Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.