Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TNeuronInputAbs.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::TNeuronInputAbs *
8 * *
9 * *
10 * Description: *
11 * TNeuron input calculator -- calculates the sum of the absolute values *
12 * of the weighted inputs *
13 * *
14 * Authors (alphabetical): *
15 * Matt Jachowski <jachowski@stanford.edu> - Stanford University, USA *
16 * *
17 * Copyright (c) 2005: *
18 * CERN, Switzerland *
19 * *
20 * Redistribution and use in source and binary forms, with or without *
21 * modification, are permitted according to the terms listed in LICENSE *
22 * (see tmva/doc/LICENSE) *
23 **********************************************************************************/
24
25
26#ifndef ROOT_TMVA_TNeuronInputAbs
27#define ROOT_TMVA_TNeuronInputAbs
28
29//////////////////////////////////////////////////////////////////////////
30// //
31// TNeuronInputAbs //
32// //
33// TNeuron input calculator -- calculates the sum of the absolute //
34// values of the weighted inputs //
35// //
36//////////////////////////////////////////////////////////////////////////
37
38#include "TMathBase.h"
39
40#include "TMVA/TNeuronInput.h"
41
42#include "TMVA/TNeuron.h"
43
44namespace TMVA {
45
47
48 public:
49
51 virtual ~TNeuronInputAbs() {}
52
53 // calculate the input value for the neuron
54 Double_t GetInput( const TNeuron* neuron ) const {
55 if (neuron->IsInputNeuron()) return 0;
56 Double_t result = 0;
57 for (Int_t i=0; i < neuron->NumPreLinks(); i++)
59 return result;
60 }
61
62 // name of the class
63 TString GetName() { return "Sum of weighted activations (absolute value)"; }
64
65 ClassDef(TNeuronInputAbs,0); // Calculates the sum of the absolute values of the weighted inputs
66 };
67
68} // namespace TMVA
69
70#endif
#define ClassDef(name, id)
Definition Rtypes.h:337
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
TNeuron input calculator – calculates the sum of the absolute values of the weighted inputs.
Double_t GetInput(const TNeuron *neuron) const
Interface for TNeuron input calculation classes.
Neuron class used by TMVA artificial neural network methods.
Definition TNeuron.h:49
Bool_t IsInputNeuron() const
Definition TNeuron.h:116
Int_t NumPreLinks() const
Definition TNeuron.h:108
TSynapse * PreLinkAt(Int_t index) const
Definition TNeuron.h:110
Double_t GetWeightedValue()
get output of pre-neuron weighted by synapse weight
Definition TSynapse.cxx:76
Basic string class.
Definition TString.h:139
create variable transformations
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.
Definition TMathBase.h:123