GPLIB++
|
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 tinvector & | GetInput () const |
get the input channel configuration More... | |
GeneralLinearCombiner (bool wantcached=false) | |
virtual | ~GeneralLinearCombiner () |
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.
typedef std::vector<boost::shared_ptr<GeneralNeuron> > gplib::GeneralLinearCombiner::tinvector |
Definition at line 20 of file GeneralLinearCombiner.h.
|
explicit |
Definition at line 7 of file GeneralLinearCombiner.cpp.
|
virtual |
Definition at line 11 of file GeneralLinearCombiner.cpp.
|
virtual |
Calculate the output given the current configuration.
Definition at line 15 of file GeneralLinearCombiner.cpp.
References size.
|
inline |
Get the current value for the bias.
Definition at line 44 of file GeneralLinearCombiner.h.
|
inline |
get the input channel configuration
Definition at line 64 of file GeneralLinearCombiner.h.
|
inline |
Get the values of the Weight vector.
Definition at line 49 of file GeneralLinearCombiner.h.
|
inline |
Set the bias weigth.
Definition at line 38 of file GeneralLinearCombiner.h.
|
virtual |
connect the input channels to the neurons given in LocalInput
Definition at line 32 of file GeneralLinearCombiner.cpp.
References size.
|
inline |
change the values of the Weight vector
Definition at line 54 of file GeneralLinearCombiner.h.