Logo ROOT   6.12/07
Reference Guide
TGraphQQ.h
Go to the documentation of this file.
1 // @(#)root/graf:$Id$
2 // Author: Anna Kreshuk 18/11/2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGraphQQ
13 #define ROOT_TGraphQQ
14 
15 
16 #include "TGraph.h"
17 
18 class TGraphQQ : public TGraph{
19 protected:
20  Int_t fNy0; ///< size of the fY0 dataset
21  Double_t fXq1; ///< x1 coordinate of the interquartile line
22  Double_t fXq2; ///< x2 coordinate of the interquartile line
23  Double_t fYq1; ///< y1 coordinate of the interquartile line
24  Double_t fYq2; ///< y2 coordinate of the interquartile line
25  Double_t *fY0; ///<! second dataset, if specified
26  TF1 *fF; ///< theoretical density function, if specified
27 
28  void Quartiles();
29  void MakeQuantiles();
30  void MakeFunctionQuantiles();
31 
32 public:
33  TGraphQQ();
35  TGraphQQ(Int_t n, Double_t *x, TF1 *f);
36  TGraphQQ(Int_t nx, Double_t *x, Int_t ny, Double_t *y);
37  virtual ~TGraphQQ();
38 
39  void SetFunction(TF1 *f);
40  Double_t GetXq1() const {return fXq1;}
41  Double_t GetXq2() const {return fXq2;}
42  Double_t GetYq1() const {return fYq1;}
43  Double_t GetYq2() const {return fYq2;}
44  TF1 *GetF() const {return fF;}
45 
46  ClassDef(TGraphQQ, 1); // to create and to draw quantile-quantile plots
47 };
48 
49 #endif
void MakeQuantiles()
When sample sizes are not equal, computes quantiles of the bigger sample by linear interpolation...
Definition: TGraphQQ.cxx:243
Double_t GetYq2() const
Definition: TGraphQQ.h:43
Int_t fNy0
size of the fY0 dataset
Definition: TGraphQQ.h:20
void SetFunction(TF1 *f)
Sets the theoretical distribution function (density!) and computes its quantiles. ...
Definition: TGraphQQ.cxx:292
Double_t fXq1
x1 coordinate of the interquartile line
Definition: TGraphQQ.h:21
void MakeFunctionQuantiles()
Computes quantiles of theoretical distribution function.
Definition: TGraphQQ.cxx:211
int Int_t
Definition: RtypesCore.h:41
This class allows to draw quantile-quantile plots.
Definition: TGraphQQ.h:18
Double_t fXq2
x2 coordinate of the interquartile line
Definition: TGraphQQ.h:22
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:320
Double_t GetXq2() const
Definition: TGraphQQ.h:41
Double_t GetXq1() const
Definition: TGraphQQ.h:40
TGraphQQ()
default constructor
Definition: TGraphQQ.cxx:94
Double_t * fY0
! second dataset, if specified
Definition: TGraphQQ.h:25
Double_t fYq2
y2 coordinate of the interquartile line
Definition: TGraphQQ.h:24
virtual ~TGraphQQ()
Destroys a TGraphQQ.
Definition: TGraphQQ.cxx:200
double Double_t
Definition: RtypesCore.h:55
Double_t y[n]
Definition: legend1.C:17
1-Dim function class
Definition: TF1.h:211
A Graph is a graphics object made of two arrays X and Y with npoints each.
Definition: TGraph.h:41
Double_t fYq1
y1 coordinate of the interquartile line
Definition: TGraphQQ.h:23
Double_t GetYq1() const
Definition: TGraphQQ.h:42
void Quartiles()
compute quartiles a quartile is a 25 per cent or 75 per cent quantile
Definition: TGraphQQ.cxx:266
TF1 * GetF() const
Definition: TGraphQQ.h:44
const Int_t n
Definition: legend1.C:16
TF1 * fF
theoretical density function, if specified
Definition: TGraphQQ.h:26