ROOT 6.18/05 Reference Guide |
The TMVA::Interval Class.
Interval definition, continuous and discrete
e.g.:
Note: bin counting starts from ZERO unlike in ROOT histograms
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.:
Definition at line 61 of file Interval.h.
Public Member Functions | |
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 void | Print (std::ostream &os) const |
void | SetMax (Double_t m) |
void | SetMin (Double_t m) |
Protected Attributes | |
Double_t | fMax |
Double_t | fMin |
Int_t | fNbins |
Private Member Functions | |
MsgLogger & | Log () const |
#include <TMVA/Interval.h>
defines minimum and maximum of an interval
Definition at line 84 of file Interval.cxx.
TMVA::Interval::Interval | ( | const Interval & | other | ) |
Definition at line 100 of file Interval.cxx.
|
virtual |
destructor
Definition at line 110 of file Interval.cxx.
calculates the value of the "number" bin in a discrete interval.
Parameters: Double_t position
Reimplemented in TMVA::LogInterval.
Definition at line 120 of file Interval.cxx.
|
inlinevirtual |
Reimplemented in TMVA::LogInterval.
Definition at line 72 of file Interval.h.
|
virtual |
Reimplemented in TMVA::LogInterval.
Definition at line 160 of file Interval.cxx.
|
inlinevirtual |
Reimplemented in TMVA::LogInterval.
Definition at line 71 of file Interval.h.
|
inlinevirtual |
Reimplemented in TMVA::LogInterval.
Definition at line 74 of file Interval.h.
get uniformly distributed number within interval
Reimplemented in TMVA::LogInterval.
Definition at line 151 of file Interval.cxx.
returns the step size between the numbers of a "discrete Interval"
Reimplemented in TMVA::LogInterval.
Definition at line 136 of file Interval.cxx.
|
virtual |
Reimplemented in TMVA::LogInterval.
Definition at line 156 of file Interval.cxx.
|
private |
Definition at line 172 of file Interval.cxx.
|
virtual |
Definition at line 165 of file Interval.cxx.
Definition at line 80 of file Interval.h.
Definition at line 81 of file Interval.h.
|
protected |
Definition at line 87 of file Interval.h.
|
protected |
Definition at line 87 of file Interval.h.
|
protected |
Definition at line 88 of file Interval.h.