14#ifndef ROOT_Math_TUnuranEmpDist 
   15#define ROOT_Math_TUnuranEmpDist 
   65   template<
class Iterator>
 
  114   const std::vector<double> & 
Data()
 const { 
return fData; }
 
 
#define ClassDefOverride(name, id)
 
TH1 is the base class of all histogram classes in ROOT.
 
TUnuranBaseDist, base class for Unuran distribution classes such as TUnuranContDist (for one-dimensio...
 
TUnuranEmpDist class for describing empirical distributions.
 
double fMax
max values (used in the binned case)
 
unsigned int NDim() const
Number of data dimensions.
 
TUnuranEmpDist * Clone() const override
Clone (required by base class)
 
double fMin
min values (used in the binned case)
 
bool fBinned
flag for binned/unbinned data
 
TUnuranEmpDist & operator=(const TUnuranEmpDist &rhs)
Assignment operator.
 
double LowerBin() const
Min value of binned data (return 0 for unbinned data)
 
bool IsBinned() const
Flag to control if data are binned.
 
TUnuranEmpDist(Iterator begin, Iterator end, unsigned int dim=1)
Constructor from a set of data using an iterator to specify begin/end of the data In the case of mult...
 
unsigned int fDim
data dimensionality
 
~TUnuranEmpDist() override
Destructor (no operations)
 
double UpperBin() const
upper value of binned data (return 0 for unbinned data)
 
TUnuranEmpDist(const TH1 *h1=nullptr, bool useBuffer=true)
Constructor from a TH1 objects.
 
std::vector< double > fData
pointer to the data vector (used for generation from un-binned data)
 
const std::vector< double > & Data() const
Return reference to data vector (unbinned or binned data)