33 fDim = h1->GetDimension();
35 bool unbin = useBuffer && h1->GetBufferLength() > 0 ;
39 int nbins = h1->GetNbinsX();
41 for (
int i =0; i < nbins; ++i)
42 fData.push_back( h1->GetBinContent(i+1) );
44 fMin = h1->GetXaxis()->GetXmin();
45 fMax = h1->GetXaxis()->GetXmax();
50 int n = h1->GetBufferLength();
51 const double * bf = h1->GetBuffer();
56 for (
int i = 0; i < n; ++i) {
58 fData.push_back( bf[index] );
79 for (
unsigned int i = 0; i < n; ++i) {
92 for (
unsigned int i = 0; i < n; ++i) {
111 if (
this == &rhs)
return *
this;
TUnuranBaseDist, base class for Unuran distribution classees such as TUnuranContDist (for one-dimensi...
TUnuranEmpDist & operator=(const TUnuranEmpDist &rhs)
Assignment operator.
you should not use this method at all Int_t y
TUnuranEmpDist class for describing empiral distributions.
std::vector< double > fData
* x
Deprecated and error prone model selection interface.
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