class TUnuranEmpDist: public TUnuranBaseDist

Function Members (Methods)

public:
TUnuranEmpDist(const TUnuranEmpDist&)
TUnuranEmpDist(const TH1* h1 = 0, bool useBuffer = true)
TUnuranEmpDist(unsigned int n, double* x)
TUnuranEmpDist(unsigned int n, double* x, double* y)
TUnuranEmpDist(double* begin, double* end, unsigned int dim = 1)
TUnuranEmpDist(unsigned int n, double* x, double* y, double* z)
virtual~TUnuranEmpDist()
static TClass*Class()
virtual TUnuranEmpDist*Clone() const
const vector<double>&Data() const
virtual TClass*IsA() const
boolIsBinned() const
doubleLowerBin() const
unsigned intNDim() const
TUnuranEmpDist&operator=(const TUnuranEmpDist& rhs)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
doubleUpperBin() const

Data Members

private:
boolfBinnedflag for binned/unbinned data
vector<double>fDatapointer to the data vector (used for generation from un-binned data)
unsigned intfDimdata dimensionality
doublefMaxmax values (used in the binned case)
doublefMinmin values (used in the binned case)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TUnuranEmpDist(const TH1 * h1, bool useBuffer)
Constructor from a TH1 objects.
The buffer of the histo, if available, can be used for
 the estimation of the parent distribution using smoothing
TUnuranEmpDist(unsigned int n, double * x)
 constructor for 1D unbinned data
TUnuranEmpDist(unsigned int n, double * x, double * y)
 constructor for 2D unbinned data
TUnuranEmpDist(unsigned int n, double* x, double* y, double* z)
 constructor for 3D unbinned data
TUnuranEmpDist(const TUnuranEmpDist& )
 Implementation of copy ctor using aassignment operator
TUnuranEmpDist(const TH1 * h1 = 0, bool useBuffer = true )
      Constructor from a TH1 objects.
      If the histogram has a buffer by default the unbinned data are used

virtual ~TUnuranEmpDist()
      Destructor (no operations)

{}
TUnuranEmpDist * Clone()
      Clone (required by base class)

{ return new TUnuranEmpDist(*this); }
const std::vector<double> & Data()
      Return reference to data vector (unbinned or binned data)

{ return fData; }
bool IsBinned()
      Flag to control if data are binned

{ return fBinned; }
double LowerBin()
      Min value of binned data
      (return 0 for unbinned data)

{ return fMin; }
double UpperBin()
      upper value of binned data
      (return 0 for unbinned data)

{ return fMax; }
unsigned int NDim()
      Number of data dimensions

{ return fDim; }

Last change: root/unuran:$Id: TUnuranEmpDist.h 21526 2007-12-20 10:42:41Z moneta $
Last generated: 2008-06-25 08:54
Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *

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.