Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGraphQQ.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/graf:$Id$
0002 // Author: Anna Kreshuk 18/11/2005
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGraphQQ
0013 #define ROOT_TGraphQQ
0014 
0015 
0016 #include "TGraph.h"
0017 
0018 class TGraphQQ : public TGraph{
0019 protected:
0020    Int_t     fNy0{0};      ///< size of the fY0 dataset
0021    Double_t  fXq1{0.};     ///< x1 coordinate of the interquartile line
0022    Double_t  fXq2{0.};     ///< x2 coordinate of the interquartile line
0023    Double_t  fYq1{0.};     ///< y1 coordinate of the interquartile line
0024    Double_t  fYq2{0.};     ///< y2 coordinate of the interquartile line
0025    Double_t *fY0{nullptr}; ///<! second dataset, if specified
0026    TF1      *fF{nullptr};  ///< theoretical density function, if specified
0027 
0028    void      Quartiles();
0029    void      MakeQuantiles();
0030    void      MakeFunctionQuantiles();
0031 
0032 public:
0033    TGraphQQ();
0034    TGraphQQ(Int_t n, Double_t *x);
0035    TGraphQQ(Int_t n, Double_t *x, TF1 *f);
0036    TGraphQQ(Int_t nx, Double_t *x, Int_t ny, Double_t *y);
0037    ~TGraphQQ() override;
0038 
0039    void SetFunction(TF1 *f);
0040    Double_t  GetXq1() const {return fXq1;}
0041    Double_t  GetXq2() const {return fXq2;}
0042    Double_t  GetYq1() const {return fYq1;}
0043    Double_t  GetYq2() const {return fYq2;}
0044    TF1      *GetF()   const {return fF;}
0045 
0046    ClassDefOverride(TGraphQQ, 1); // to create and to draw quantile-quantile plots
0047 };
0048 
0049 #endif