TFCS1DFunction class

Base classes

class TFCSFunction

Derived classes

class TFCS1DFunctionHistogram
class TFCS1DFunctionInt16Histogram
class TFCS1DFunctionInt32Histogram
class TFCS1DFunctionRegression
class TFCS1DFunctionSpline
template<typename Txvec, typename Ty, typename Trandom = float>
class TFCS1DFunctionTemplateHistogram
template<typename Txvec, typename Ty, typename Trandom = float>
class TFCS1DFunctionTemplateHistogram
template<typename Txvec, typename Ty, typename Trandom = float>
class TFCS1DFunctionTemplateHistogram
template<typename Txvec, typename Ty, typename Trandom = float>
class TFCS1DFunctionTemplateHistogram
template<typename Txvec, typename Ty, typename Trandom = float>
class TFCS1DFunctionTemplateHistogram
template<typename Txvec, typename Ty, typename Trandom = float>
class TFCS1DFunctionTemplateHistogram
template<typename Txvec, typename Ty, typename Trandom = float>
class TFCS1DFunctionTemplateHistogram

Public static functions

static auto get_maxdev(TH1*, TH1*) -> double
static auto CheckAndIntegrate1DHistogram(const TH1* hist, std::vector<double>& integral_vec, int& first, int& last) -> double
static auto generate_histogram_random_slope(int nbinsx = 50, double xmin = 0, double xmax = 1, double zerothreshold = 0.1) -> TH1*
static auto generate_histogram_random_gauss(int nbinsx = 50, int ntoy = 100000, double xmin = 1, double xmax = 5, double xpeak = 1.5, double sigma = 0.6) -> TH1*

Constructors, destructors, conversion operators

TFCS1DFunction()
~TFCS1DFunction()

Public functions

auto ndim() const -> int virtual
Return the number of dimensions for the function.
void rnd_to_fct(float value[], const float rnd[]) const virtual
auto rnd_to_fct(double rnd) const -> double pure virtual
auto operator==(const TFCS1DFunction& ref) const -> bool virtual

Function documentation

void TFCS1DFunction::rnd_to_fct(float value[], const float rnd[]) const virtual

Function gets array of random numbers rnd[] in the range [0,1) as arguments and returns function value in array value. For a n-dimensional function, value and rnd should both have n elements.

double TFCS1DFunction::rnd_to_fct(double rnd) const pure virtual

Function gets random number rnd in the range [0,1) as argument and returns function value

bool TFCS1DFunction::operator==(const TFCS1DFunction& ref) const virtual

The == operator compares the content of instances. The implementation in the base class only returns true for a comparison with itself