ATLAS Offline Software
TFCS1DFunctionRegression.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ISF_FASTCALOSIMEVENT_TFCS1DFunctionRegression_h
6 #define ISF_FASTCALOSIMEVENT_TFCS1DFunctionRegression_h
7 
9 #include "TTree.h"
10 #include "TH1.h"
11 #include <vector>
12 
14 public:
17 
19  virtual double rnd_to_fct(double rnd) const;
20  double regression_value(double uniform) const;
21  void set_weights(const std::vector<std::vector<double>> &fWeightMatrix0to1,
22  const std::vector<std::vector<double>> &fWeightMatrix1to2);
23  static double sigmoid(double);
24 
25 private:
26  std::vector<std::vector<double>> m_fWeightMatrix0to1;
27  std::vector<std::vector<double>> m_fWeightMatrix1to2;
28 
29  ClassDef(TFCS1DFunctionRegression, 1) // TFCS1DFunctionRegression
30 };
31 
32 #endif
TFCS1DFunction::rnd_to_fct
virtual void rnd_to_fct(float value[], const float rnd[]) const
Function gets array of random numbers rnd[] in the range [0,1) as arguments and returns function valu...
Definition: TFCS1DFunction.cxx:17
TFCS1DFunctionRegression::m_fWeightMatrix1to2
std::vector< std::vector< double > > m_fWeightMatrix1to2
Definition: TFCS1DFunctionRegression.h:27
TFCS1DFunctionRegression::TFCS1DFunctionRegression
TFCS1DFunctionRegression()
Definition: TFCS1DFunctionRegression.h:15
TFCS1DFunctionRegression
Definition: TFCS1DFunctionRegression.h:13
TFCS1DFunctionRegression::regression_value
double regression_value(double uniform) const
Definition: TFCS1DFunctionRegression.cxx:17
TFCS1DFunctionRegression::rnd_to_fct
virtual double rnd_to_fct(double rnd) const
Function gets random number rnd in the range [0,1) as argument and returns function value.
Definition: TFCS1DFunctionRegression.cxx:71
TFCS1DFunctionRegression::sigmoid
static double sigmoid(double)
The Sigmoid.
Definition: TFCS1DFunctionRegression.cxx:98
H5Utils::internal::uniform
std::array< hsize_t, N > uniform(size_t val)
Definition: Writer.h:331
TFCS1DFunctionRegression::~TFCS1DFunctionRegression
~TFCS1DFunctionRegression()
Definition: TFCS1DFunctionRegression.h:16
TFCS1DFunctionRegression::m_fWeightMatrix0to1
std::vector< std::vector< double > > m_fWeightMatrix0to1
Definition: TFCS1DFunctionRegression.h:26
TFCS1DFunction.h
TFCS1DFunctionRegression::set_weights
void set_weights(const std::vector< std::vector< double >> &fWeightMatrix0to1, const std::vector< std::vector< double >> &fWeightMatrix1to2)
Definition: TFCS1DFunctionRegression.cxx:77
TFCS1DFunction
Definition: TFCS1DFunction.h:17