Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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

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
 
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 LogInterval"
 
virtual Double_t GetWidth () const
 
MsgLoggerLog () const
 
void SetMax (Double_t m)
 
void SetMin (Double_t m)
 
- 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
 
virtual ~Interval ()
 destructor
 
virtual void Print (std::ostream &os) const
 
void SetMax (Double_t m)
 
void SetMin (Double_t m)
 

Additional Inherited Members

- Protected Attributes inherited from TMVA::Interval
Double_t fMax
 
Double_t fMin
 
Int_t fNbins
 

#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

◆ 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.

◆ 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.

Libraries for TMVA::LogInterval:

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