Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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();
34  TGraphQQ(Int_t n, Double_t *x);
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