/usr/include/root/TMVA/TNeuronInputChooser.h is in libroot-tmva-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | // @(#)root/tmva $Id$
// Author: Matt Jachowski
/**********************************************************************************
* Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
* Package: TMVA *
* Class : TMVA::TNeuronInputChooser *
* Web : http://tmva.sourceforge.net *
* *
* Description: *
* Class for easily choosing neuron input functions. *
* *
* Authors (alphabetical): *
* Matt Jachowski <jachowski@stanford.edu> - Stanford University, USA *
* *
* Copyright (c) 2005: *
* CERN, Switzerland *
* *
* Redistribution and use in source and binary forms, with or without *
* modification, are permitted according to the terms listed in LICENSE *
* (http://tmva.sourceforge.net/LICENSE) *
**********************************************************************************/
#ifndef ROOT_TMVA_TNeuronInputChooser
#define ROOT_TMVA_TNeuronInputChooser
//////////////////////////////////////////////////////////////////////////
// //
// TNeuronInputChooser //
// //
// Class for easily choosing neuron input functions //
// //
//////////////////////////////////////////////////////////////////////////
#include <vector>
#ifndef ROOT_TString
#include "TString.h"
#endif
#ifndef ROOT_TMVA_TActivation
#ifndef ROOT_TNeuronInput
#include "TNeuronInput.h"
#endif
#endif
#ifndef ROOT_TMVA_TNeuronInputSum
#ifndef ROOT_TNeuronInputSum
#include "TNeuronInputSum.h"
#endif
#endif
#ifndef ROOT_TMVA_TNeuronInputSqSum
#ifndef ROOT_TNeuronInputSqSum
#include "TNeuronInputSqSum.h"
#endif
#endif
#ifndef ROOT_TMVA_TNeuronInputAbs
#ifndef ROOT_TNeuronInputAbs
#include "TNeuronInputAbs.h"
#endif
#endif
namespace TMVA {
class TNeuron;
class TNeuronInputChooser {
public:
TNeuronInputChooser()
{
fSUM = "sum";
fSQSUM = "sqsum";
fABSSUM = "abssum";
}
virtual ~TNeuronInputChooser() {}
enum ENeuronInputType { kSum = 0,
kSqSum,
kAbsSum
};
TNeuronInput* CreateNeuronInput(ENeuronInputType type) const
{
switch (type) {
case kSum: return new TNeuronInputSum();
case kSqSum: return new TNeuronInputSqSum();
case kAbsSum: return new TNeuronInputAbs();
default: return NULL;
}
return NULL;
}
TNeuronInput* CreateNeuronInput(const TString type) const
{
if (type == fSUM) return CreateNeuronInput(kSum);
else if (type == fSQSUM) return CreateNeuronInput(kSqSum);
else if (type == fABSSUM) return CreateNeuronInput(kAbsSum);
else return NULL;
}
std::vector<TString>* GetAllNeuronInputNames() const
{
std::vector<TString>* names = new std::vector<TString>();
names->push_back(fSUM);
names->push_back(fSQSUM);
names->push_back(fABSSUM);
return names;
}
private:
TString fSUM; // neuron input type name
TString fSQSUM; // neuron input type name
TString fABSSUM; // neuron input type name
ClassDef(TNeuronInputChooser,0) // Class for choosing neuron input functions
};
} // namespace TMVA
#endif
|