#ifndef ROOT_TMVA_Interval
#define ROOT_TMVA_Interval
#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
#ifndef ROOT_TMVA_MsgLogger
#include "TMVA/MsgLogger.h"
#endif
class TRandom;
namespace TMVA {
class Interval {
public:
Interval( Double_t min, Double_t max, Int_t nbins = 0 );
Interval( const Interval& other );
virtual ~Interval();
Double_t GetMin() const { return fMin; }
Double_t GetMax() const { return fMax; }
Double_t GetWidth() const { return fMax - fMin; }
Int_t GetNbins() const { return fNbins; }
Double_t GetMean() const { return (fMax + fMin)/2; }
Double_t GetRndm( TRandom& ) const;
Double_t GetElement( Int_t position ) const;
void SetMax( Double_t m ) { fMax = m; }
void SetMin( Double_t m ) { fMin = m; }
private:
mutable MsgLogger fLogger;
Double_t fMin, fMax;
Int_t fNbins;
ClassDef(Interval,0)
};
}
#endif
Last change: Wed Jun 25 08:48:14 2008
Last generated: 2008-06-25 08:48
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.