#include <GeneralNeuron.h>

Public Member Functions | |
| virtual double | CalcDeriv (const double input)=0 |
| Calculate the derivative of the activation function, at point input. | |
| virtual double | GetNet ()=0 |
| Get the net output before application of the activation function. | |
| virtual double | GetDelta ()=0 |
| Get delta for the weight correction formula. | |
| virtual void | SetDelta (const double d)=0 |
| Set delta. | |
| virtual void | SetBias (const double b)=0 |
| Set the bias. | |
| virtual double | GetBias ()=0 |
| Get the bias. | |
| virtual const std::vector < double > & | GetWeights ()=0 |
| Access function for the weights. | |
| virtual std::vector< double > & | SetWeights ()=0 |
| virtual const std::vector < double > & | GetOldDelta ()=0 |
| Vector valued delta for the momentum adaptation scheme. | |
| virtual std::vector< double > & | SetOldDelta ()=0 |
| virtual const GeneralLinearCombiner::tinvector & | GetInput ()=0 |
| Get the pointers to the input neurons. | |
| double | GetOutput () |
| Get the output given the current weights. | |
| double | GetLastOutput () |
| Get the last result from calling GetOutput, needed during adaptation. | |
| virtual void | SetInput (const GeneralLinearCombiner::tinvector &input) |
| Set pointers to the input. | |
| GeneralNeuron () | |
| virtual | ~GeneralNeuron () |
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.
| GeneralNeuron::GeneralNeuron | ( | ) | [inline] |
Definition at line 47 of file GeneralNeuron.h.
| virtual GeneralNeuron::~GeneralNeuron | ( | ) | [inline, virtual] |
Definition at line 48 of file GeneralNeuron.h.
Calculate the derivative of the activation function, at point input.
Implemented in InputNeuron, and SigmoidalNeuron.
| virtual double GeneralNeuron::GetBias | ( | ) | [pure virtual] |
| virtual double GeneralNeuron::GetDelta | ( | ) | [pure virtual] |
| virtual const GeneralLinearCombiner::tinvector& GeneralNeuron::GetInput | ( | ) | [pure virtual] |
| double GeneralNeuron::GetLastOutput | ( | ) | [inline] |
Get the last result from calling GetOutput, needed during adaptation.
Definition at line 44 of file GeneralNeuron.h.
| virtual double GeneralNeuron::GetNet | ( | ) | [pure virtual] |
Get the net output before application of the activation function.
Implemented in InputNeuron, and SigmoidalNeuron.
| virtual const std::vector<double>& GeneralNeuron::GetOldDelta | ( | ) | [pure virtual] |
Vector valued delta for the momentum adaptation scheme.
Implemented in InputNeuron, and SigmoidalNeuron.
| double GeneralNeuron::GetOutput | ( | ) | [inline] |
| virtual const std::vector<double>& GeneralNeuron::GetWeights | ( | ) | [pure virtual] |
| virtual void GeneralNeuron::SetBias | ( | const double | b | ) | [pure virtual] |
| virtual void GeneralNeuron::SetDelta | ( | const double | d | ) | [pure virtual] |
| virtual void GeneralNeuron::SetInput | ( | const GeneralLinearCombiner::tinvector & | input | ) | [inline, virtual] |
Set pointers to the input.
Reimplemented in SigmoidalNeuron.
Definition at line 46 of file GeneralNeuron.h.
| virtual std::vector<double>& GeneralNeuron::SetOldDelta | ( | ) | [pure virtual] |
Implemented in InputNeuron, and SigmoidalNeuron.
| virtual std::vector<double>& GeneralNeuron::SetWeights | ( | ) | [pure virtual] |
Implemented in InputNeuron, and SigmoidalNeuron.
1.5.8