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
LogInterval(Double_t min, Double_t max, Int_t nbins=0)

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
Double_t GetElement (Int_t position) const override
 calculates the value of the "number" bin in a discrete interval.
Double_t GetMax () const override
Double_t GetMean () const override
Double_t GetMin () const override
Int_t GetNbins () const override
Double_t GetRndm (TRandom3 &) const override
 get uniformly distributed number within interval
Double_t GetStepSize (Int_t iBin=0) const override
 returns the step size between the numbers of a "discrete LogInterval"
Double_t GetWidth () const override
TClassIsA () const override
MsgLoggerLog () const
virtual void Print (std::ostream &os) const
void SetMax (Double_t m)
void SetMin (Double_t m)
void Streamer (TBuffer &) override
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)

Static Public Member Functions

static TClassClass ()
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

#include <TMVA/LogInterval.h>

Inheritance diagram for TMVA::LogInterval:
TMVA::Interval

Constructor & Destructor Documentation

◆ LogInterval() [1/2]

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

Definition at line 88 of file LogInterval.cxx.

◆ LogInterval() [2/2]

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

Definition at line 94 of file LogInterval.cxx.

◆ ~LogInterval()

TMVA::LogInterval::~LogInterval ( )
virtual

destructor

Definition at line 102 of file LogInterval.cxx.

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

constexpr Version_t TMVA::LogInterval::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 106 of file LogInterval.h.

◆ DeclFileName()

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
overridevirtual

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

Parameters:

  • Double_t position

Reimplemented from TMVA::Interval.

Definition at line 112 of file LogInterval.cxx.

◆ GetMax()

Double_t TMVA::LogInterval::GetMax ( ) const
inlineoverridevirtual

Reimplemented from TMVA::Interval.

Definition at line 93 of file LogInterval.h.

◆ GetMean()

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

Reimplemented from TMVA::Interval.

Definition at line 157 of file LogInterval.cxx.

◆ GetMin()

Double_t TMVA::LogInterval::GetMin ( ) const
inlineoverridevirtual

Reimplemented from TMVA::Interval.

Definition at line 92 of file LogInterval.h.

◆ GetNbins()

Int_t TMVA::LogInterval::GetNbins ( ) const
inlineoverridevirtual

Reimplemented from TMVA::Interval.

Definition at line 95 of file LogInterval.h.

◆ GetRndm()

Double_t TMVA::LogInterval::GetRndm ( TRandom3 & rnd) const
overridevirtual

get uniformly distributed number within interval

Reimplemented from TMVA::Interval.

Definition at line 143 of file LogInterval.cxx.

◆ GetStepSize()

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

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

Reimplemented from TMVA::Interval.

Definition at line 128 of file LogInterval.cxx.

◆ GetWidth()

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

Reimplemented from TMVA::Interval.

Definition at line 150 of file LogInterval.cxx.

◆ IsA()

TClass * TMVA::LogInterval::IsA ( ) const
inlineoverridevirtual
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 164 of file LogInterval.cxx.

◆ Print()

void TMVA::Interval::Print ( std::ostream & os) const
virtualinherited

Definition at line 163 of file Interval.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()

void TMVA::LogInterval::Streamer ( TBuffer & )
overridevirtual

Reimplemented from TMVA::Interval.

◆ StreamerNVirtual()

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

Definition at line 106 of file LogInterval.h.

Member Data Documentation

◆ fMax

Double_t TMVA::Interval::fMax
protectedinherited

the constraints of the Interval

Definition at line 87 of file Interval.h.

◆ fMin

Double_t TMVA::Interval::fMin
protectedinherited

Definition at line 87 of file Interval.h.

◆ fNbins

Int_t TMVA::Interval::fNbins
protectedinherited

when >0 : number of bins (discrete interval); when ==0 continuous interval

Definition at line 88 of file Interval.h.


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