GPLIB++
Public Member Functions | List of all members
gplib::GeneralNeuron Class Referenceabstract

The base class for all neurons in a neural network. More...

#include <GeneralNeuron.h>

Inheritance diagram for gplib::GeneralNeuron:
Inheritance graph
[legend]

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

gplib::GeneralNeuron::GeneralNeuron ( )
inline

Definition at line 57 of file GeneralNeuron.h.

virtual gplib::GeneralNeuron::~GeneralNeuron ( )
inlinevirtual

Definition at line 60 of file GeneralNeuron.h.

Member Function Documentation

virtual double gplib::GeneralNeuron::CalcDeriv ( const double  input)
pure virtual

Calculate the derivative of the activation function, at point input.

Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.

virtual double gplib::GeneralNeuron::GetBias ( )
pure virtual

Get the bias.

Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.

virtual double gplib::GeneralNeuron::GetDelta ( )
pure virtual

Get delta for the weight correction formula.

Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.

virtual const GeneralLinearCombiner::tinvector& gplib::GeneralNeuron::GetInput ( )
pure virtual

Get the pointers to the input neurons.

Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.

double gplib::GeneralNeuron::GetLastOutput ( )
inline

Get the last result from calling GetOutput, needed during adaptation.

Definition at line 49 of file GeneralNeuron.h.

virtual double gplib::GeneralNeuron::GetNet ( )
pure virtual

Get the net output before application of the activation function.

Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.

virtual const std::vector<double>& gplib::GeneralNeuron::GetOldDelta ( )
pure virtual

Vector valued delta for the momentum adaptation scheme.

Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.

double gplib::GeneralNeuron::GetOutput ( )
inline

Get the output given the current weights.

Definition at line 43 of file GeneralNeuron.h.

virtual const std::vector<double>& gplib::GeneralNeuron::GetWeights ( )
pure virtual

Access function for the weights.

Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.

virtual void gplib::GeneralNeuron::SetBias ( const double  b)
pure virtual

Set the bias.

Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.

virtual void gplib::GeneralNeuron::SetDelta ( const double  d)
pure virtual

Set delta.

Implemented in gplib::SigmoidalNeuron, and gplib::InputNeuron.

virtual void gplib::GeneralNeuron::SetInput ( const GeneralLinearCombiner::tinvector input)
inlinevirtual

Set pointers to the input.

Reimplemented in gplib::SigmoidalNeuron.

Definition at line 54 of file GeneralNeuron.h.

virtual std::vector<double>& gplib::GeneralNeuron::SetOldDelta ( )
pure virtual
virtual std::vector<double>& gplib::GeneralNeuron::SetWeights ( )
pure virtual

The documentation for this class was generated from the following file: