class TMVA::Interval


 Interval

 Implementation of a one-dimensional range, that can be either
 continuous and discrete.


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(TRandom&) 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
voidSetMax(Double_t m)
voidSetMin(Double_t m)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

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

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Interval(Double_t min, Double_t max, Int_t nbins = 0)
 defines minimum and maximum of an interval
 when nbins == 0, interval describes a discrete distribution (equally distributed in the interval)
 when nbins > 0, interval describes a continous interval

Interval(const TMVA::Interval& other)
 copy constructor
~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 GetRndm(TRandom& ) const
 get uniformely distributed number within interval
Double_t GetMin()
 accessors
{ return fMin; }
Double_t GetMax()
{ return fMax; }
Double_t GetWidth()
{ return fMax - fMin; }
Int_t GetNbins()
{ return fNbins; }
Double_t GetMean()
{ return (fMax + fMin)/2; }
void SetMax(Double_t m)
{ fMax = m; }
void SetMin(Double_t m)
{ fMin = m; }

Author: Peter Speckmayer
Last change: root/tmva $Id: Interval.h 20882 2007-11-19 11:31:26Z rdm $
Last generated: 2008-06-25 08:48
Copyright (c) 2005: *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.