ATLAS Offline Software
TFCS1DFunctionRegressionTF.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "TFile.h"
7 #include "TString.h"
8 #include "TMath.h"
9 using namespace std;
10 
11 //=============================================
12 //======= TFCS1DFunctionRegressionTF =========
13 //=============================================
14 
15 using namespace std;
16 
18  float startval) {
19  m_rangeval = rangeval;
20  m_startval = startval;
21 }
22 
24 
25  return (value * m_rangeval + m_startval);
26 }
27 
28 double TFCS1DFunctionRegressionTF::rnd_to_fct(double rnd) const {
29 
30  double value = regression_value(rnd);
31  if (m_rangeval > 0)
32  value = retransform(value);
33  return value;
34 }
athena.value
value
Definition: athena.py:122
TFCS1DFunctionRegressionTF::TFCS1DFunctionRegressionTF
TFCS1DFunctionRegressionTF()
Definition: TFCS1DFunctionRegressionTF.h:14
TFCS1DFunctionRegressionTF::retransform
double retransform(double value) const
Definition: TFCS1DFunctionRegressionTF.cxx:23
TFCS1DFunctionRegressionTF.h
TFCS1DFunctionRegressionTF::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: TFCS1DFunctionRegressionTF.cxx:28