GeneralLinearCombiner Class Reference
[Neural Network filtering]

A linear combiner as a component of a neural network. More...

#include <GeneralLinearCombiner.h>

List of all members.

Public Types

typedef std::vector
< boost::shared_ptr
< GeneralNeuron > > 
tinvector

Public Member Functions

void SetBias (const double b)
 Set the bias weigth.
double GetBias () const
 Get the current value for the bias.
const std::vector< double > & GetWeights () const
 Get the values of the Weight vector.
std::vector< double > & SetWeights ()
 change the values of the Weight vector
virtual double CalcOutput ()
 Calculate the output given the current configuration.
virtual void SetInput (const tinvector &LocalInput)
 connect the input channels to the neurons given in LocalInput
const tinvectorGetInput () const
 get the input channel configuration
 GeneralLinearCombiner (bool wantcached=false)
virtual ~GeneralLinearCombiner ()


Detailed Description

A linear combiner as a component of a neural network.

It can cache the last output for faster calculation within the network, but this assumes that between every output calculation the weights are updated.

Definition at line 16 of file GeneralLinearCombiner.h.


Member Typedef Documentation

typedef std::vector<boost::shared_ptr<GeneralNeuron> > GeneralLinearCombiner::tinvector

Definition at line 18 of file GeneralLinearCombiner.h.


Constructor & Destructor Documentation

GeneralLinearCombiner::GeneralLinearCombiner ( bool  wantcached = false  )  [explicit]

Definition at line 4 of file GeneralLinearCombiner.cpp.

GeneralLinearCombiner::~GeneralLinearCombiner (  )  [virtual]

Definition at line 9 of file GeneralLinearCombiner.cpp.


Member Function Documentation

double GeneralLinearCombiner::CalcOutput (  )  [virtual]

Calculate the output given the current configuration.

Definition at line 12 of file GeneralLinearCombiner.cpp.

References size.

double GeneralLinearCombiner::GetBias (  )  const [inline]

Get the current value for the bias.

Definition at line 38 of file GeneralLinearCombiner.h.

const tinvector& GeneralLinearCombiner::GetInput (  )  const [inline]

get the input channel configuration

Definition at line 48 of file GeneralLinearCombiner.h.

const std::vector<double>& GeneralLinearCombiner::GetWeights (  )  const [inline]

Get the values of the Weight vector.

Definition at line 40 of file GeneralLinearCombiner.h.

void GeneralLinearCombiner::SetBias ( const double  b  )  [inline]

Set the bias weigth.

Definition at line 36 of file GeneralLinearCombiner.h.

void GeneralLinearCombiner::SetInput ( const tinvector LocalInput  )  [virtual]

connect the input channels to the neurons given in LocalInput

Definition at line 29 of file GeneralLinearCombiner.cpp.

References size.

std::vector<double>& GeneralLinearCombiner::SetWeights (  )  [inline]

change the values of the Weight vector

Definition at line 42 of file GeneralLinearCombiner.h.


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

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