14#ifndef ROOT_Math_TUnuranEmpDist
15#define ROOT_Math_TUnuranEmpDist
65 template<
class Iterator>
67 fData(
std::vector<double>(begin,end) ),
114 const std::vector<double> &
Data()
const {
return fData; }
#define ClassDef(name, id)
TUnuranBaseDist, base class for Unuran distribution classees such as TUnuranContDist (for one-dimensi...
TUnuranEmpDist class for describing empiral distributions.
unsigned int NDim() const
Number of data dimensions.
TUnuranEmpDist(const TH1 *h1=0, bool useBuffer=true)
Constructor from a TH1 objects.
TUnuranEmpDist & operator=(const TUnuranEmpDist &rhs)
Assignment operator.
TUnuranEmpDist * Clone() const
Clone (required by base class)
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...
double UpperBin() const
upper value of binned data (return 0 for unbinned data)
std::vector< double > fData
const std::vector< double > & Data() const
Return reference to data vector (unbinned or binned data)
virtual ~TUnuranEmpDist()
Destructor (no operations)