#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. | |
| 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 tinvector & | GetInput () const |
| get the input channel configuration | |
| GeneralLinearCombiner (bool wantcached=false) | |
| virtual | ~GeneralLinearCombiner () |
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.
| typedef std::vector<boost::shared_ptr<GeneralNeuron> > GeneralLinearCombiner::tinvector |
Definition at line 18 of file GeneralLinearCombiner.h.
| 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.
| void GeneralLinearCombiner::SetBias | ( | const double | b | ) | [inline] |
| double GeneralLinearCombiner::GetBias | ( | ) | const [inline] |
| const std::vector<double>& GeneralLinearCombiner::GetWeights | ( | ) | const [inline] |
| std::vector<double>& GeneralLinearCombiner::SetWeights | ( | ) | [inline] |
| double GeneralLinearCombiner::CalcOutput | ( | ) | [virtual] |
Calculate the output given the current configuration.
Definition at line 12 of file GeneralLinearCombiner.cpp.
References size.
| 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.
| const tinvector& GeneralLinearCombiner::GetInput | ( | ) | const [inline] |
1.5.5