ROOT logo
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()
Double_tGetElement(Int_t position) const
Double_tGetMax() const
Double_tGetMean() const
Double_tGetMin() const
Int_tGetNbins() const
Double_tGetRndm(TRandom3&) const
Double_tGetStepSize() const
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&)
voidSetMax(Double_t m)
voidSetMin(Double_t m)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
TMVA::MsgLogger&Log() const

Data Members

private:
Double_tfMaxthe constraints of the Interval
Double_tfMin
Int_tfNbinswhen >0 : number of bins (discrete interval); when ==0 continuous interval
static TMVA::MsgLogger*fgLoggermessage logger

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Interval(Double_t min, Double_t max, Int_t nbins = 0)
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() 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 GetMin() const
 accessors
{ return fMin; }
Double_t GetMax() const
{ return fMax; }
Double_t GetWidth() const
{ return fMax - fMin; }
Int_t GetNbins() const
{ return fNbins; }
Double_t GetMean() const
{ return (fMax + fMin)/2; }
void SetMax(Double_t m)
{ fMax = m; }
void SetMin(Double_t m)
{ fMin = m; }