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; }
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.
double UpperBin() const
upper value of binned data (return 0 for unbinned data)
#define ClassDef(name, id)
const std::vector< double > & Data() const
Return reference to data vector (unbinned or binned data)
virtual ~TUnuranEmpDist()
Destructor (no operations)
TUnuranEmpDist class for describing empiral distributions.
unsigned int NDim() const
Number of data dimensions.
double LowerBin() const
Min value of binned data (return 0 for unbinned data)
std::vector< double > fData
TUnuranEmpDist(const TH1 *h1=0, bool useBuffer=true)
Constructor from a TH1 objects.
you should not use this method at all Int_t Int_t z
bool IsBinned() const
Flag to control if data are binned.
TUnuranEmpDist * Clone() const
Clone (required by base class)