ATLAS Offline Software
Loading...
Searching...
No Matches
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
14public:
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
25private:
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
static TRandom * rnd
double regression_value(double uniform) const
std::vector< std::vector< double > > m_fWeightMatrix0to1
virtual double rnd_to_fct(double rnd) const
Function gets random number rnd in the range [0,1) as argument and returns function value.
std::vector< std::vector< double > > m_fWeightMatrix1to2
static double sigmoid(double)
The Sigmoid.
void set_weights(const std::vector< std::vector< double > > &fWeightMatrix0to1, const std::vector< std::vector< double > > &fWeightMatrix1to2)
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...