GeneralNeuron Class Reference
[Neural Network filtering]

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

#include <GeneralNeuron.h>

Inheritance diagram for GeneralNeuron:

Inheritance graph
[legend]

List of all members.

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


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

GeneralNeuron::GeneralNeuron (  )  [inline]

Definition at line 47 of file GeneralNeuron.h.

virtual GeneralNeuron::~GeneralNeuron (  )  [inline, virtual]

Definition at line 48 of file GeneralNeuron.h.


Member Function Documentation

virtual double GeneralNeuron::CalcDeriv ( const double  input  )  [pure virtual]

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

Implemented in InputNeuron, and SigmoidalNeuron.

virtual double GeneralNeuron::GetBias (  )  [pure virtual]

Get the bias.

Implemented in InputNeuron, and SigmoidalNeuron.

virtual double GeneralNeuron::GetDelta (  )  [pure virtual]

Get delta for the weight correction formula.

Implemented in InputNeuron, and SigmoidalNeuron.

virtual const GeneralLinearCombiner::tinvector& GeneralNeuron::GetInput (  )  [pure virtual]

Get the pointers to the input neurons.

Implemented in InputNeuron, and SigmoidalNeuron.

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]

Get the output given the current weights.

Definition at line 42 of file GeneralNeuron.h.

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

Access function for the weights.

Implemented in InputNeuron, and SigmoidalNeuron.

virtual void GeneralNeuron::SetBias ( const double  b  )  [pure virtual]

Set the bias.

Implemented in InputNeuron, and SigmoidalNeuron.

virtual void GeneralNeuron::SetDelta ( const double  d  )  [pure virtual]

Set delta.

Implemented in InputNeuron, and SigmoidalNeuron.

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.


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

Generated on Tue Aug 4 16:04:19 2009 for GPLIB++ by  doxygen 1.5.8