1 #ifndef CGENERALLINEARCOMBINER_H
2 #define CGENERALLINEARCOMBINER_H
4 #include <boost/shared_ptr.hpp>
20 typedef std::vector<boost::shared_ptr<GeneralNeuron> >
tinvector;
23 std::vector<double> Weights;
73 #endif // CGENERALLINEARCOMBINER_H
virtual ~GeneralLinearCombiner()
const std::vector< double > & GetWeights() const
Get the values of the Weight vector.
GeneralLinearCombiner(bool wantcached=false)
double GetBias() const
Get the current value for the bias.
virtual void SetInput(const tinvector &LocalInput)
connect the input channels to the neurons given in LocalInput
void SetBias(const double b)
Set the bias weigth.
virtual double CalcOutput()
Calculate the output given the current configuration.
std::vector< double > & SetWeights()
change the values of the Weight vector
A linear combiner as a component of a neural network.
std::vector< boost::shared_ptr< GeneralNeuron > > tinvector
const tinvector & GetInput() const
get the input channel configuration