Logo ROOT  
Reference Guide
TMVA::LogInterval Class Reference

The TMVA::Interval Class.

  • LogInterval definition, continuous and discrete
    • LogInterval(min,max) : a continous interval [min,max]
    • LogInterval(min,max,n): a "discrete interval" [min,max], i.e the n numbers:

      1,10,100,1000

      1,2,4,8,16,32,64,128,512,1024

      or alike ..

Example:
LogInterval(1,10000,5)
i=0 --> 1 note: StepSize(ibin=0) = not defined !!
i=1 --> 10 StepSize(ibin=1) = 9
i=2 --> 100 StepSize(ibin=2) = 99
i=3 --> 1000 StepSize(ibin=3) = 999
i=4 --> 10000 StepSize(ibin=4) = 9999
LogInterval(1,1000,11)
i=0 --> 1
i=1 --> 1.99526
i=2 --> 3.98107
i=3 --> 7.94328
i=4 --> 15.8489
i=5 --> 31.6228
i=6 --> 63.0957
i=7 --> 125.893
i=8 --> 251.189
i=9 --> 501.187
i=10 --> 1000
LogInterval(1,1024,11)
i=0 --> 1
i=1 --> 2
i=2 --> 4
i=3 --> 8
i=4 --> 16
i=5 --> 32
i=6 --> 64
i=7 --> 128
i=8 --> 256
i=9 --> 512
i=10 --> 1024
The TMVA::Interval Class.
Definition: LogInterval.h:83
LogInterval(Double_t min, Double_t max, Int_t nbins=0)
Definition: LogInterval.cxx:89

Definition at line 83 of file LogInterval.h.

Public Member Functions

 LogInterval (const LogInterval &other)
 
 LogInterval (Double_t min, Double_t max, Int_t nbins=0)
 
virtual ~LogInterval ()
 destructor More...
 
virtual Double_t GetElement (Int_t position) const
 calculates the value of the "number" bin in a discrete interval. More...
 
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 More...
 
virtual Double_t GetStepSize (Int_t iBin=0) const
 returns the step size between the numbers of a "discrete LogInterval" More...
 
virtual Double_t GetWidth () const
 
virtual TClassIsA () const
 
MsgLoggerLog () const
 
void SetMax (Double_t m)
 
void SetMin (Double_t m)
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TMVA::Interval
 Interval (const Interval &other)
 
 Interval (Double_t min, Double_t max, Int_t nbins=0)
 defines minimum and maximum of an interval More...
 
virtual ~Interval ()
 destructor More...
 
virtual Double_t GetElement (Int_t position) const
 calculates the value of the "number" bin in a discrete interval. More...
 
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 More...
 
virtual Double_t GetStepSize (Int_t iBin=0) const
 returns the step size between the numbers of a "discrete Interval" More...
 
virtual Double_t GetWidth () const
 
virtual TClassIsA () 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 TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TMVA::Interval
static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Additional Inherited Members

- Protected Attributes inherited from TMVA::Interval
Double_t fMax
 the constraints of the Interval More...
 
Double_t fMin
 
Int_t fNbins
 when >0 : number of bins (discrete interval); when ==0 continuous interval More...
 

#include <TMVA/LogInterval.h>

Inheritance diagram for TMVA::LogInterval:
[legend]

Constructor & Destructor Documentation

◆ LogInterval() [1/2]

TMVA::LogInterval::LogInterval ( Double_t  min,
Double_t  max,
Int_t  nbins = 0 
)

Definition at line 89 of file LogInterval.cxx.

◆ LogInterval() [2/2]

TMVA::LogInterval::LogInterval ( const LogInterval other)

Definition at line 95 of file LogInterval.cxx.

◆ ~LogInterval()

TMVA::LogInterval::~LogInterval ( )
virtual

destructor

Definition at line 103 of file LogInterval.cxx.

Member Function Documentation

◆ Class()

static TClass * TMVA::LogInterval::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TMVA::LogInterval::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static Version_t TMVA::LogInterval::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 106 of file LogInterval.h.

◆ DeclFileName()

static const char * TMVA::LogInterval::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 106 of file LogInterval.h.

◆ GetElement()

Double_t TMVA::LogInterval::GetElement ( Int_t  bin) const
virtual

calculates the value of the "number" bin in a discrete interval.

Parameters:

  • Double_t position

Reimplemented from TMVA::Interval.

Definition at line 113 of file LogInterval.cxx.

◆ GetMax()

virtual Double_t TMVA::LogInterval::GetMax ( ) const
inlinevirtual

Reimplemented from TMVA::Interval.

Definition at line 93 of file LogInterval.h.

◆ GetMean()

Double_t TMVA::LogInterval::GetMean ( ) const
virtual

Reimplemented from TMVA::Interval.

Definition at line 158 of file LogInterval.cxx.

◆ GetMin()

virtual Double_t TMVA::LogInterval::GetMin ( ) const
inlinevirtual

Reimplemented from TMVA::Interval.

Definition at line 92 of file LogInterval.h.

◆ GetNbins()

virtual Int_t TMVA::LogInterval::GetNbins ( ) const
inlinevirtual

Reimplemented from TMVA::Interval.

Definition at line 95 of file LogInterval.h.

◆ GetRndm()

Double_t TMVA::LogInterval::GetRndm ( TRandom3 rnd) const
virtual

get uniformly distributed number within interval

Reimplemented from TMVA::Interval.

Definition at line 144 of file LogInterval.cxx.

◆ GetStepSize()

Double_t TMVA::LogInterval::GetStepSize ( Int_t  iBin = 0) const
virtual

returns the step size between the numbers of a "discrete LogInterval"

Reimplemented from TMVA::Interval.

Definition at line 129 of file LogInterval.cxx.

◆ GetWidth()

Double_t TMVA::LogInterval::GetWidth ( ) const
virtual

Reimplemented from TMVA::Interval.

Definition at line 151 of file LogInterval.cxx.

◆ IsA()

virtual TClass * TMVA::LogInterval::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented from TMVA::Interval.

Definition at line 106 of file LogInterval.h.

◆ Log()

TMVA::MsgLogger & TMVA::LogInterval::Log ( ) const

Definition at line 165 of file LogInterval.cxx.

◆ SetMax()

void TMVA::LogInterval::SetMax ( Double_t  m)
inline

Definition at line 101 of file LogInterval.h.

◆ SetMin()

void TMVA::LogInterval::SetMin ( Double_t  m)
inline

Definition at line 102 of file LogInterval.h.

◆ Streamer()

virtual void TMVA::LogInterval::Streamer ( TBuffer )
virtual

Reimplemented from TMVA::Interval.

◆ StreamerNVirtual()

void TMVA::LogInterval::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 106 of file LogInterval.h.

Libraries for TMVA::LogInterval:
[legend]

The documentation for this class was generated from the following files: