178 for (
Int_t i=0; i<ny; i++)
185 for (
Int_t i=0; i<nx; i++)
186 fY0[i] = x[index[i]];
188 for (
Int_t i=0; i<ny; i++)
229 prob[k-1] = (k-0.375)/(
fNpoints+0.25);
255 fX[i] = (1-pfrac)*
fY0[pint]+pfrac*
fY0[pint+1];
void MakeQuantiles()
When sample sizes are not equal, computes quantiles of the bigger sample by linear interpolation...
Int_t fNpoints
Number of points <= fMaxSize.
virtual Int_t GetQuantiles(Int_t nprobSum, Double_t *q, const Double_t *probSum)
Compute Quantiles for density distribution of this function.
Double_t * fX
[fNpoints] array of X points
Int_t fNy0
size of the fY0 dataset
static constexpr double pi
void SetFunction(TF1 *f)
Sets the theoretical distribution function (density!) and computes its quantiles. ...
Double_t NormQuantile(Double_t p)
Double_t fXq1
x1 coordinate of the interquartile line
void MakeFunctionQuantiles()
Computes quantiles of theoretical distribution function.
Int_t FloorNint(Double_t x)
This class allows to draw quantile-quantile plots.
Double_t fXq2
x2 coordinate of the interquartile line
void Quantiles(Int_t n, Int_t nprob, Double_t *x, Double_t *quantiles, Double_t *prob, Bool_t isSorted=kTRUE, Int_t *index=0, Int_t type=7)
void Sort(Index n, const Element *a, Index *index, Bool_t down=kTRUE)
Sort the n elements of the array a of generic templated type Element.
TGraphQQ()
default constructor
Double_t * fY0
! second dataset, if specified
Bool_t CtorAllocate()
In constructors set fNpoints than call this method.
Double_t fYq2
y2 coordinate of the interquartile line
virtual ~TGraphQQ()
Destroys a TGraphQQ.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
static constexpr double s
Double_t * fY
[fNpoints] array of Y points
Short_t Max(Short_t a, Short_t b)
A Graph is a graphics object made of two arrays X and Y with npoints each.
Double_t fYq1
y1 coordinate of the interquartile line
void Quartiles()
compute quartiles a quartile is a 25 per cent or 75 per cent quantile
virtual const char * GetTitle() const
Returns title of object.
TF1 * fF
theoretical density function, if specified