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