Logo ROOT   6.08/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 #ifndef ROOT_TGraph
17 #include "TGraph.h"
18 #endif
19 
20 class TGraphQQ : public TGraph{
21 protected:
22  Int_t fNy0; ///< size of the fY0 dataset
23  Double_t fXq1; ///< x1 coordinate of the interquartile line
24  Double_t fXq2; ///< x2 coordinate of the interquartile line
25  Double_t fYq1; ///< y1 coordinate of the interquartile line
26  Double_t fYq2; ///< y2 coordinate of the interquartile line
27  Double_t *fY0; ///<! second dataset, if specified
28  TF1 *fF; ///< theoretical density function, if specified
29 
30  void Quartiles();
31  void MakeQuantiles();
32  void MakeFunctionQuantiles();
33 
34 public:
35  TGraphQQ();
37  TGraphQQ(Int_t n, Double_t *x, TF1 *f);
39  virtual ~TGraphQQ();
40 
41  void SetFunction(TF1 *f);
42  Double_t GetXq1() const {return fXq1;}
43  Double_t GetXq2() const {return fXq2;}
44  Double_t GetYq1() const {return fYq1;}
45  Double_t GetYq2() const {return fYq2;}
46  TF1 *GetF() const {return fF;}
47 
48  ClassDef(TGraphQQ, 1); // to create and to draw quantile-quantile plots
49 };
50 
51 #endif
const int nx
Definition: kalman.C:16
void MakeQuantiles()
When sample sizes are not equal, computes quantiles of the bigger sample by linear interpolation...
Definition: TGraphQQ.cxx:241
Double_t GetYq2() const
Definition: TGraphQQ.h:45
Int_t fNy0
size of the fY0 dataset
Definition: TGraphQQ.h:22
void SetFunction(TF1 *f)
Sets the theoretical distribution function (density!) and computes its quantiles. ...
Definition: TGraphQQ.cxx:290
Double_t fXq1
x1 coordinate of the interquartile line
Definition: TGraphQQ.h:23
void MakeFunctionQuantiles()
Computes quantiles of theoretical distribution function.
Definition: TGraphQQ.cxx:209
int Int_t
Definition: RtypesCore.h:41
This class allows to draw quantile-quantile plots.
Definition: TGraphQQ.h:20
Double_t fXq2
x2 coordinate of the interquartile line
Definition: TGraphQQ.h:24
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:254
const int ny
Definition: kalman.C:17
Double_t GetXq2() const
Definition: TGraphQQ.h:43
Double_t GetXq1() const
Definition: TGraphQQ.h:42
TGraphQQ()
default constructor
Definition: TGraphQQ.cxx:94
Double_t * fY0
! second dataset, if specified
Definition: TGraphQQ.h:27
Double_t fYq2
y2 coordinate of the interquartile line
Definition: TGraphQQ.h:26
virtual ~TGraphQQ()
Destroys a TGraphQQ.
Definition: TGraphQQ.cxx:198
double f(double x)
double Double_t
Definition: RtypesCore.h:55
Double_t y[n]
Definition: legend1.C:17
1-Dim function class
Definition: TF1.h:149
A Graph is a graphics object made of two arrays X and Y with npoints each.
Definition: TGraph.h:53
Double_t fYq1
y1 coordinate of the interquartile line
Definition: TGraphQQ.h:25
Double_t GetYq1() const
Definition: TGraphQQ.h:44
void Quartiles()
compute quartiles a quartile is a 25 per cent or 75 per cent quantile
Definition: TGraphQQ.cxx:264
TF1 * GetF() const
Definition: TGraphQQ.h:46
const Int_t n
Definition: legend1.C:16
TF1 * fF
theoretical density function, if specified
Definition: TGraphQQ.h:28