ROOT » TMVA » TMVA::Interval

class TMVA::Interval


Interval

Interval definition, continuous and discrete

Interval(min,max)  : a continous interval [min,max]
Interval(min,max,n): a "discrete interval" [min,max], i.e the n numbers:
min, min+step, min+2*step,...., min+(n-1)*step, min+n*step=max
e.g.: Interval(1,5,5)=1,2,3,4,5
Interval(.5,1.,6)= .5, .6., .7, .8, .9, 1.0

Note: **bin** counting starts from ZERO unlike in ROOT histograms


the TMVA::Interval Class

  • Interval definition, continuous and discrete
    • Interval(min,max) : a continous interval [min,max]
    • 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.: Interval(1,5,5)=1,2,3,4,5
      Interval(.5,1.,6)= .5, .6., .7, .8, .9, 1.0
    Example:   Interval(.5,1.,6)
             [ min                           max ]
         ------------------------------------------------------------
                |     |     |     |     |     |
               .5    .6    .7    .8    .9    1.0
         bin    0     1     2     3     4     5
 

Function Members (Methods)

public:
virtual~Interval()
static TClass*Class()
virtual Double_tGetElement(Int_t position) const
virtual Double_tGetMax() const
virtual Double_tGetMean() const
virtual Double_tGetMin() const
virtual Int_tGetNbins() const
virtual Double_tGetRndm(TRandom3&) const
virtual Double_tGetStepSize(Int_t iBin = 0) const
virtual Double_tGetWidth() const
TMVA::IntervalInterval(const TMVA::Interval& other)
TMVA::IntervalInterval(Double_t min, Double_t max, Int_t nbins = 0)
virtual TClass*IsA() const
TMVA::Interval&operator=(const TMVA::Interval&)
virtual voidPrint(ostream& os) const
voidSetMax(Double_t m)
voidSetMin(Double_t m)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
private:
TMVA::MsgLogger&Log() const

Data Members

protected:
Double_tfMaxthe constraints of the Interval
Double_tfMinthe constraints of the Interval
Int_tfNbinswhen >0 : number of bins (discrete interval); when ==0 continuous interval

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Interval(Double_t min, Double_t max, Int_t nbins = 0)
 defines minimum and maximum of an interval
 when nbins > 0, interval describes a discrete distribution (equally distributed in the interval)
 when nbins == 0, interval describes a continous interval

Interval(const TMVA::Interval& other)
~Interval()
 destructor
Double_t GetElement(Int_t position) const
 calculates the value of the "number" bin in a discrete interval.
 Parameters:
        Double_t position

Double_t GetStepSize(Int_t iBin = 0) const
 retuns the step size between the numbers of a "discrete Interval"
Double_t GetRndm(TRandom3& ) const
 get uniformely distributed number within interval
Double_t GetWidth() const
Double_t GetMean() const
void Print(ostream& os) const
TMVA::MsgLogger& Log() const
Double_t GetMin() const
 accessors
 accessors
{ return fMin; }
Double_t GetMax() const
{ return fMax; }
Int_t GetNbins() const
{ return fNbins; }
void SetMax(Double_t m)
{ fMax = m; }
void SetMin(Double_t m)
{ fMin = m; }