TGraphQQ.h

Go to the documentation of this file.
00001 // @(#)root/graf:$Id: TGraphQQ.h 24843 2008-07-16 13:19:42Z couet $
00002 // Author: Anna Kreshuk 18/11/2005
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TGraphQQ
00013 #define ROOT_TGraphQQ
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TGraphQQ                                                             //
00019 //                                                                      //
00020 // to create and to draw quantile-quantile plots                        //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_TGraph
00025 #include "TGraph.h"
00026 #endif
00027 
00028 class TGraphQQ : public TGraph{
00029 protected:
00030    Int_t     fNy0;    //size of the fY0 dataset
00031    Double_t  fXq1;    //x1 coordinate of the interquartile line
00032    Double_t  fXq2;    //x2 coordinate of the interquartile line
00033    Double_t  fYq1;    //y1 coordinate of the interquartile line
00034    Double_t  fYq2;    //y2 coordinate of the interquartile line
00035    Double_t *fY0;     //!second dataset, if specified
00036    TF1      *fF;      //theoretical density function, if specified
00037    
00038    void      Quartiles();
00039    void      MakeQuantiles();
00040    void      MakeFunctionQuantiles();
00041 
00042 public:
00043    TGraphQQ();
00044    TGraphQQ(Int_t n, Double_t *x);
00045    TGraphQQ(Int_t n, Double_t *x, TF1 *f);
00046    TGraphQQ(Int_t nx, Double_t *x, Int_t ny, Double_t *y);
00047    virtual ~TGraphQQ();
00048 
00049    void SetFunction(TF1 *f);
00050    Double_t  GetXq1() const {return fXq1;}
00051    Double_t  GetXq2() const {return fXq2;}
00052    Double_t  GetYq1() const {return fYq1;}
00053    Double_t  GetYq2() const {return fYq2;}
00054    TF1      *GetF()   const {return fF;}
00055 
00056    ClassDef(TGraphQQ, 1); // to create and to draw quantile-quantile plots
00057 };
00058 
00059 #endif

Generated on Tue Jul 5 14:14:09 2011 for ROOT_528-00b_version by  doxygen 1.5.1