#ifndef ROOT_TMVA_TNeuronInputSqSum
#define ROOT_TMVA_TNeuronInputSqSum
// NeuronInput = #sum_{i} y_{i}^{2}
// 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 TNeuronInputSqSum : public TNeuronInput {
public:
TNeuronInputSqSum() {}
virtual ~TNeuronInputSqSum() {}
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++) {
Double_t val = neuron->PreLinkAt(i)->GetWeightedValue();
result += val*val;
}
return result;
}
TString GetName() { return "Sum of weighted activations squared"; }
ClassDef(TNeuronInputSqSum,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.