#include <SigmoidalNeuron.h>

Public Types | |
| enum | tneurontype { bipolar, identity } |
| At the moment there are two types of neurons: bipolar and identity, they differ in their activation function. More... | |
Public Member Functions | |
| virtual const std::vector < double > & | GetOldDelta () |
| Get the last weight correction for momentum adaptation. | |
| virtual std::vector< double > & | SetOldDelta () |
| virtual double | CalcDeriv (const double input) |
| Return the derivative of the activation function. | |
| virtual double | GetNet () |
| Get the raw output of the linear combiner. | |
| virtual double | GetDelta () |
| Get the delta term of the weight correction formula. | |
| virtual void | SetDelta (const double d) |
| Set the delta term of the weight correction formula. | |
| virtual void | SetBias (const double b) |
| Set the bias of the linear combiner, the following functions are mostly for convenience access. | |
| virtual double | GetBias () |
| Get the bias of the linear combiner. | |
| virtual const std::vector < double > & | GetWeights () |
| Get the weights. | |
| virtual std::vector< double > & | SetWeights () |
| Set the weights. | |
| virtual const GeneralLinearCombiner::tinvector & | GetInput () |
| Get the input neurons. | |
| virtual void | SetInput (const GeneralLinearCombiner::tinvector &input) |
| Set the input neurons. | |
| virtual void | SetType (tneurontype type) |
| Set the type of neuron, determines the activation function. | |
| SigmoidalNeuron (tneurontype type, bool wantcached=false) | |
| Construct neuron with a known type. | |
| virtual | ~SigmoidalNeuron () |
Definition at line 16 of file SigmoidalNeuron.h.
At the moment there are two types of neurons: bipolar and identity, they differ in their activation function.
Definition at line 20 of file SigmoidalNeuron.h.
| gplib::SigmoidalNeuron::SigmoidalNeuron | ( | tneurontype | type, | |
| bool | wantcached = false | |||
| ) | [explicit] |
Construct neuron with a known type.
Definition at line 7 of file SigmoidalNeuron.cpp.
References SetType().
| gplib::SigmoidalNeuron::~SigmoidalNeuron | ( | ) | [virtual] |
Definition at line 13 of file SigmoidalNeuron.cpp.
Return the derivative of the activation function.
Implements gplib::GeneralNeuron.
Definition at line 52 of file SigmoidalNeuron.h.
| virtual double gplib::SigmoidalNeuron::GetBias | ( | ) | [inline, virtual] |
Get the bias of the linear combiner.
Implements gplib::GeneralNeuron.
Definition at line 77 of file SigmoidalNeuron.h.
| virtual double gplib::SigmoidalNeuron::GetDelta | ( | ) | [inline, virtual] |
Get the delta term of the weight correction formula.
Implements gplib::GeneralNeuron.
Definition at line 62 of file SigmoidalNeuron.h.
| virtual const GeneralLinearCombiner::tinvector& gplib::SigmoidalNeuron::GetInput | ( | ) | [inline, virtual] |
Get the input neurons.
Implements gplib::GeneralNeuron.
Definition at line 92 of file SigmoidalNeuron.h.
| virtual double gplib::SigmoidalNeuron::GetNet | ( | ) | [inline, virtual] |
Get the raw output of the linear combiner.
Implements gplib::GeneralNeuron.
Definition at line 57 of file SigmoidalNeuron.h.
| virtual const std::vector<double>& gplib::SigmoidalNeuron::GetOldDelta | ( | ) | [inline, virtual] |
Get the last weight correction for momentum adaptation.
Implements gplib::GeneralNeuron.
Definition at line 43 of file SigmoidalNeuron.h.
| virtual const std::vector<double>& gplib::SigmoidalNeuron::GetWeights | ( | ) | [inline, virtual] |
| virtual void gplib::SigmoidalNeuron::SetBias | ( | const double | b | ) | [inline, virtual] |
Set the bias of the linear combiner, the following functions are mostly for convenience access.
Implements gplib::GeneralNeuron.
Definition at line 72 of file SigmoidalNeuron.h.
| virtual void gplib::SigmoidalNeuron::SetDelta | ( | const double | d | ) | [inline, virtual] |
Set the delta term of the weight correction formula.
Implements gplib::GeneralNeuron.
Definition at line 67 of file SigmoidalNeuron.h.
| void gplib::SigmoidalNeuron::SetInput | ( | const GeneralLinearCombiner::tinvector & | input | ) | [virtual] |
Set the input neurons.
Reimplemented from gplib::GeneralNeuron.
Definition at line 24 of file SigmoidalNeuron.cpp.
| virtual std::vector<double>& gplib::SigmoidalNeuron::SetOldDelta | ( | ) | [inline, virtual] |
| void gplib::SigmoidalNeuron::SetType | ( | tneurontype | type | ) | [virtual] |
Set the type of neuron, determines the activation function.
Definition at line 30 of file SigmoidalNeuron.cpp.
References bipolar, and identity.
Referenced by SigmoidalNeuron().
| virtual std::vector<double>& gplib::SigmoidalNeuron::SetWeights | ( | ) | [inline, virtual] |
1.5.8