The TMVA::Interval Class.
Interval definition, continuous and discrete
e.g.:
Note: bin counting starts from ZERO unlike in ROOT histograms
Interval(min,max,n): a "discrete interval" [min,max], i.e the n numbers:
min, min+step, min+2*step,...., min+(n-1)*step=max
e.g.:
Definition at line 61 of file Interval.h.
Public Member Functions | |
Interval (const Interval &other) | |
Interval (Double_t min, Double_t max, Int_t nbins=0) | |
defines minimum and maximum of an interval | |
virtual | ~Interval () |
destructor | |
virtual Double_t | GetElement (Int_t position) const |
calculates the value of the "number" bin in a discrete interval. | |
virtual Double_t | GetMax () const |
virtual Double_t | GetMean () const |
virtual Double_t | GetMin () const |
virtual Int_t | GetNbins () const |
virtual Double_t | GetRndm (TRandom3 &) const |
get uniformly distributed number within interval | |
virtual Double_t | GetStepSize (Int_t iBin=0) const |
returns the step size between the numbers of a "discrete Interval" | |
virtual Double_t | GetWidth () const |
virtual TClass * | IsA () const |
virtual void | Print (std::ostream &os) const |
void | SetMax (Double_t m) |
void | SetMin (Double_t m) |
virtual void | Streamer (TBuffer &) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Protected Attributes | |
Double_t | fMax |
the constraints of the Interval | |
Double_t | fMin |
Int_t | fNbins |
when >0 : number of bins (discrete interval); when ==0 continuous interval | |
Private Member Functions | |
MsgLogger & | Log () const |
#include <TMVA/Interval.h>
defines minimum and maximum of an interval
Definition at line 83 of file Interval.cxx.
TMVA::Interval::Interval | ( | const Interval & | other | ) |
Definition at line 99 of file Interval.cxx.
|
virtual |
destructor
Definition at line 109 of file Interval.cxx.
|
static |
|
inlinestaticconstexpr |
Definition at line 93 of file Interval.h.
|
inlinestatic |
Definition at line 93 of file Interval.h.
calculates the value of the "number" bin in a discrete interval.
Parameters: Double_t position
Reimplemented in TMVA::LogInterval.
Definition at line 119 of file Interval.cxx.
|
inlinevirtual |
Reimplemented in TMVA::LogInterval.
Definition at line 72 of file Interval.h.
|
virtual |
Reimplemented in TMVA::LogInterval.
Definition at line 159 of file Interval.cxx.
|
inlinevirtual |
Reimplemented in TMVA::LogInterval.
Definition at line 71 of file Interval.h.
|
inlinevirtual |
Reimplemented in TMVA::LogInterval.
Definition at line 74 of file Interval.h.
get uniformly distributed number within interval
Reimplemented in TMVA::LogInterval.
Definition at line 150 of file Interval.cxx.
returns the step size between the numbers of a "discrete Interval"
Reimplemented in TMVA::LogInterval.
Definition at line 135 of file Interval.cxx.
|
virtual |
Reimplemented in TMVA::LogInterval.
Definition at line 155 of file Interval.cxx.
|
inlinevirtual |
Reimplemented in TMVA::LogInterval.
Definition at line 93 of file Interval.h.
|
private |
Definition at line 171 of file Interval.cxx.
|
virtual |
Definition at line 164 of file Interval.cxx.
|
inline |
Definition at line 80 of file Interval.h.
|
inline |
Definition at line 81 of file Interval.h.
|
virtual |
Reimplemented in TMVA::LogInterval.
|
inline |
Definition at line 93 of file Interval.h.
|
protected |
the constraints of the Interval
Definition at line 87 of file Interval.h.
|
protected |
Definition at line 87 of file Interval.h.
|
protected |
when >0 : number of bins (discrete interval); when ==0 continuous interval
Definition at line 88 of file Interval.h.