#ifndef ROOT_TMVA_TNeuronInputSum
#define ROOT_TMVA_TNeuronInputSum
// NeuronInput = #sum_{i} y_{i}
// End_Latex
#include "TObject.h"
#include "TString.h"
#ifndef ROOT_TMVA_TNeuronInput
#include "TMVA/TNeuronInput.h"
#endif
#ifndef ROOT_TMVA_TNeuron
#include "TMVA/TNeuron.h"
#endif
namespace TMVA {
class TNeuronInputSum : public TNeuronInput {
public:
TNeuronInputSum() {}
virtual ~TNeuronInputSum() {}
Double_t GetInput( const TNeuron* neuron ) const {
if (neuron->IsInputNeuron()) return 0;
Double_t result = 0;
for (Int_t i=0; i < neuron->NumPreLinks(); i++) {
result += neuron->PreLinkAt(i)->GetWeightedValue();
}
return result;
}
TString GetName() { return "Sum of weighted activations"; }
ClassDef(TNeuronInputSum,0)
};
}
#endif
Last change: Wed Jun 25 08:48:53 2008
Last generated: 2008-06-25 08:48
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.