GPLIB++
Public Types | Public Member Functions | List of all members
gplib::GeneralLinearCombiner Class Reference

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

#include <GeneralLinearCombiner.h>

Public Types

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

Public Member Functions

void SetBias (const double b)
 Set the bias weigth. More...
 
double GetBias () const
 Get the current value for the bias. More...
 
const std::vector< double > & GetWeights () const
 Get the values of the Weight vector. More...
 
std::vector< double > & SetWeights ()
 change the values of the Weight vector More...
 
virtual double CalcOutput ()
 Calculate the output given the current configuration. More...
 
virtual void SetInput (const tinvector &LocalInput)
 connect the input channels to the neurons given in LocalInput More...
 
const tinvectorGetInput () const
 get the input channel configuration More...
 
 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 17 of file GeneralLinearCombiner.h.

Member Typedef Documentation

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

Definition at line 20 of file GeneralLinearCombiner.h.

Constructor & Destructor Documentation

gplib::GeneralLinearCombiner::GeneralLinearCombiner ( bool  wantcached = false)
explicit

Definition at line 7 of file GeneralLinearCombiner.cpp.

gplib::GeneralLinearCombiner::~GeneralLinearCombiner ( )
virtual

Definition at line 11 of file GeneralLinearCombiner.cpp.

Member Function Documentation

double gplib::GeneralLinearCombiner::CalcOutput ( )
virtual

Calculate the output given the current configuration.

Definition at line 15 of file GeneralLinearCombiner.cpp.

References size.

double gplib::GeneralLinearCombiner::GetBias ( ) const
inline

Get the current value for the bias.

Definition at line 44 of file GeneralLinearCombiner.h.

const tinvector& gplib::GeneralLinearCombiner::GetInput ( ) const
inline

get the input channel configuration

Definition at line 64 of file GeneralLinearCombiner.h.

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

Get the values of the Weight vector.

Definition at line 49 of file GeneralLinearCombiner.h.

void gplib::GeneralLinearCombiner::SetBias ( const double  b)
inline

Set the bias weigth.

Definition at line 38 of file GeneralLinearCombiner.h.

void gplib::GeneralLinearCombiner::SetInput ( const tinvector LocalInput)
virtual

connect the input channels to the neurons given in LocalInput

Definition at line 32 of file GeneralLinearCombiner.cpp.

References size.

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

change the values of the Weight vector

Definition at line 54 of file GeneralLinearCombiner.h.


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