14 #ifndef ROOT_Math_TUnuranEmpDist
15 #define ROOT_Math_TUnuranEmpDist
49 class TUnuranEmpDist :
public TUnuranBaseDist {
58 TUnuranEmpDist (
const TH1 * h1 = 0,
bool useBuffer =
true );
65 template<
class Iterator>
66 TUnuranEmpDist (Iterator begin, Iterator end,
unsigned int dim = 1) :
67 fData(std::vector<double>(begin,end) ),
75 TUnuranEmpDist (
unsigned int n,
double * x);
80 TUnuranEmpDist (
unsigned int n,
double * x,
double * y);
85 TUnuranEmpDist (
unsigned int n,
double * x,
double * y,
double * z);
91 virtual ~TUnuranEmpDist () {}
97 TUnuranEmpDist(
const TUnuranEmpDist &);
103 TUnuranEmpDist & operator = (
const TUnuranEmpDist & rhs);
108 TUnuranEmpDist * Clone()
const {
return new TUnuranEmpDist(*
this); }
114 const std::vector<double> & Data()
const {
return fData; }
119 bool IsBinned()
const {
return fBinned; }
125 double LowerBin()
const {
return fMin; }
131 double UpperBin()
const {
return fMax; }
136 unsigned int NDim()
const {
return fDim; }
141 std::vector<double> fData;
147 ClassDef(TUnuranEmpDist,1)