ROOT logo
// @(#)root/graf:$Id: TGraphQQ.h 24843 2008-07-16 13:19:42Z couet $
// Author: Anna Kreshuk 18/11/2005

/*************************************************************************
 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TGraphQQ
#define ROOT_TGraphQQ


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TGraphQQ                                                             //
//                                                                      //
// to create and to draw quantile-quantile plots                        //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGraph
#include "TGraph.h"
#endif

class TGraphQQ : public TGraph{
protected:
   Int_t     fNy0;    //size of the fY0 dataset
   Double_t  fXq1;    //x1 coordinate of the interquartile line
   Double_t  fXq2;    //x2 coordinate of the interquartile line
   Double_t  fYq1;    //y1 coordinate of the interquartile line
   Double_t  fYq2;    //y2 coordinate of the interquartile line
   Double_t *fY0;     //!second dataset, if specified
   TF1      *fF;      //theoretical density function, if specified
   
   void      Quartiles();
   void      MakeQuantiles();
   void      MakeFunctionQuantiles();

public:
   TGraphQQ();
   TGraphQQ(Int_t n, Double_t *x);
   TGraphQQ(Int_t n, Double_t *x, TF1 *f);
   TGraphQQ(Int_t nx, Double_t *x, Int_t ny, Double_t *y);
   virtual ~TGraphQQ();

   void SetFunction(TF1 *f);
   Double_t  GetXq1() const {return fXq1;}
   Double_t  GetXq2() const {return fXq2;}
   Double_t  GetYq1() const {return fYq1;}
   Double_t  GetYq2() const {return fYq2;}
   TF1      *GetF()   const {return fF;}

   ClassDef(TGraphQQ, 1); // to create and to draw quantile-quantile plots
};

#endif
 TGraphQQ.h:1
 TGraphQQ.h:2
 TGraphQQ.h:3
 TGraphQQ.h:4
 TGraphQQ.h:5
 TGraphQQ.h:6
 TGraphQQ.h:7
 TGraphQQ.h:8
 TGraphQQ.h:9
 TGraphQQ.h:10
 TGraphQQ.h:11
 TGraphQQ.h:12
 TGraphQQ.h:13
 TGraphQQ.h:14
 TGraphQQ.h:15
 TGraphQQ.h:16
 TGraphQQ.h:17
 TGraphQQ.h:18
 TGraphQQ.h:19
 TGraphQQ.h:20
 TGraphQQ.h:21
 TGraphQQ.h:22
 TGraphQQ.h:23
 TGraphQQ.h:24
 TGraphQQ.h:25
 TGraphQQ.h:26
 TGraphQQ.h:27
 TGraphQQ.h:28
 TGraphQQ.h:29
 TGraphQQ.h:30
 TGraphQQ.h:31
 TGraphQQ.h:32
 TGraphQQ.h:33
 TGraphQQ.h:34
 TGraphQQ.h:35
 TGraphQQ.h:36
 TGraphQQ.h:37
 TGraphQQ.h:38
 TGraphQQ.h:39
 TGraphQQ.h:40
 TGraphQQ.h:41
 TGraphQQ.h:42
 TGraphQQ.h:43
 TGraphQQ.h:44
 TGraphQQ.h:45
 TGraphQQ.h:46
 TGraphQQ.h:47
 TGraphQQ.h:48
 TGraphQQ.h:49
 TGraphQQ.h:50
 TGraphQQ.h:51
 TGraphQQ.h:52
 TGraphQQ.h:53
 TGraphQQ.h:54
 TGraphQQ.h:55
 TGraphQQ.h:56
 TGraphQQ.h:57
 TGraphQQ.h:58
 TGraphQQ.h:59