ROOT   6.10/09 Reference Guide
TNeuronInputSum.h
Go to the documentation of this file.
1 // @(#)root/tmva $Id$
2 // Author: Matt Jachowski
3
4 /**********************************************************************************
5  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6  * Package: TMVA *
7  * Class : TMVA::TNeuronInputSum *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: *
11  * TNeuron input calculator -- calculates the weighted sum of inputs. *
12  * *
13  * Authors (alphabetical): *
14  * Matt Jachowski <jachowski@stanford.edu> - Stanford University, USA *
15  * *
16  * Copyright (c) 2005: *
17  * CERN, Switzerland *
18  * *
19  * Redistribution and use in source and binary forms, with or without *
20  * modification, are permitted according to the terms listed in LICENSE *
22  **********************************************************************************/
23
24
25 #ifndef ROOT_TMVA_TNeuronInputSum
26 #define ROOT_TMVA_TNeuronInputSum
27
28 //////////////////////////////////////////////////////////////////////////
29 // //
30 // TNeuronInputSum //
31 // //
32 // TNeuron input calculator -- calculates the weighted sum of inputs //
33 // //
34 //////////////////////////////////////////////////////////////////////////
35
36 #include "TObject.h"
37 #include "TString.h"
38
39 #include "TMVA/TNeuronInput.h"
40 #include "TMVA/TNeuron.h"
41
42 namespace TMVA {
43
44  class TNeuronInputSum : public TNeuronInput {
45
46  public:
47
49  virtual ~TNeuronInputSum() {}
50
51  // calculate input value for neuron
52  Double_t GetInput( const TNeuron* neuron ) const {
53  if (neuron->IsInputNeuron()) return 0;
54  Double_t result = 0;
56  for (Int_t i=0; i < npl; i++) {
58  }
59  return result;
60  }
61
62  // name of class
63  TString GetName() { return "Sum of weighted activations"; }
64
65  ClassDef(TNeuronInputSum,0); // Calculates weighted sum of neuron inputs
66  };
67
68 } // namespace TMVA
69
70 #endif
Bool_t IsInputNeuron() const
Definition: TNeuron.h:116
Basic string class.
Definition: TString.h:129
int Int_t
Definition: RtypesCore.h:41
#define ClassDef(name, id)
Definition: Rtypes.h:297
TNeuron input calculator – calculates the weighted sum of inputs.
Neuron class used by TMVA artificial neural network methods.
Definition: TNeuron.h:49
Definition: TNeuron.h:108
Definition: TNeuron.h:110
Double_t GetInput(const TNeuron *neuron) const
double Double_t
Definition: RtypesCore.h:55
Abstract ClassifierFactory template that handles arbitrary types.
Interface for TNeuron input calculation classes.
Definition: TNeuronInput.h:42
double result[121]
Double_t GetWeightedValue()
get output of pre-neuron weighted by synapse weight
Definition: TSynapse.cxx:77