8 wchanged(true), bchanged(true), cachedoutput(wantcached)
18 if (!cachedoutput || wchanged || bchanged)
22 const size_t size = Weights.size();
23 for (
unsigned int i = 0; i <
size; ++i)
24 Output += (Input.at(i)->GetOutput()) * Weights.at(i);
34 const int size = LocalInput.size();
36 Weights.assign(size, 0);
46 copy(LocalInput.begin(), LocalInput.end(), back_inserter(Input));
virtual ~GeneralLinearCombiner()
GeneralLinearCombiner(bool wantcached=false)
virtual void SetInput(const tinvector &LocalInput)
connect the input channels to the neurons given in LocalInput
virtual double CalcOutput()
Calculate the output given the current configuration.
std::vector< boost::shared_ptr< GeneralNeuron > > tinvector