ATLAS Offline Software
Loading...
Searching...
No Matches
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"
9using namespace std;
10
11//=============================================
12//======= TFCS1DFunctionRegressionTF =========
13//=============================================
14
15using namespace std;
16
18 float startval) {
19 m_rangeval = rangeval;
20 m_startval = startval;
21}
22
23double TFCS1DFunctionRegressionTF::retransform(double value) const {
24
25 return (value * m_rangeval + m_startval);
26}
27
29
30 double value = regression_value(rnd);
31 if (m_rangeval > 0)
32 value = retransform(value);
33 return value;
34}
static TRandom * rnd
virtual double rnd_to_fct(double rnd) const
Function gets random number rnd in the range [0,1) as argument and returns function value.
double retransform(double value) const
double regression_value(double uniform) const
STL namespace.