ROOT   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
42namespace TMVA {
43
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
int Int_t
Definition: RtypesCore.h:41
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:326
TNeuron input calculator – calculates the weighted sum of inputs.
Double_t GetInput(const TNeuron *neuron) const
Interface for TNeuron input calculation classes.
Definition: TNeuronInput.h:42
Neuron class used by TMVA artificial neural network methods.
Definition: TNeuron.h:49
Bool_t IsInputNeuron() const
Definition: TNeuron.h:116