Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
18class TGraphQQ : public TGraph{
19protected:
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();
31
32public:
33 TGraphQQ();
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
#define f(i)
Definition RSha256.hxx:104
double Double_t
Definition RtypesCore.h:59
#define ClassDef(name, id)
Definition Rtypes.h:325
1-Dim function class
Definition TF1.h:213
This class allows to draw quantile-quantile plots.
Definition TGraphQQ.h:18
void Quartiles()
compute quartiles a quartile is a 25 per cent or 75 per cent quantile
Definition TGraphQQ.cxx:264
TGraphQQ()
default constructor
Definition TGraphQQ.cxx:92
virtual ~TGraphQQ()
Destroys a TGraphQQ.
Definition TGraphQQ.cxx:198
TF1 * fF
theoretical density function, if specified
Definition TGraphQQ.h:26
Double_t fYq1
y1 coordinate of the interquartile line
Definition TGraphQQ.h:23
Double_t GetXq1() const
Definition TGraphQQ.h:40
Double_t * fY0
! second dataset, if specified
Definition TGraphQQ.h:25
void SetFunction(TF1 *f)
Sets the theoretical distribution function (density!) and computes its quantiles.
Definition TGraphQQ.cxx:290
Double_t fXq2
x2 coordinate of the interquartile line
Definition TGraphQQ.h:22
Double_t GetYq2() const
Definition TGraphQQ.h:43
Int_t fNy0
size of the fY0 dataset
Definition TGraphQQ.h:20
void MakeFunctionQuantiles()
Computes quantiles of theoretical distribution function.
Definition TGraphQQ.cxx:209
Double_t GetXq2() const
Definition TGraphQQ.h:41
Double_t fXq1
x1 coordinate of the interquartile line
Definition TGraphQQ.h:21
Double_t fYq2
y2 coordinate of the interquartile line
Definition TGraphQQ.h:24
TF1 * GetF() const
Definition TGraphQQ.h:44
void MakeQuantiles()
When sample sizes are not equal, computes quantiles of the bigger sample by linear interpolation.
Definition TGraphQQ.cxx:241
Double_t GetYq1() const
Definition TGraphQQ.h:42
A TGraph is an object made of two arrays X and Y with npoints each.
Definition TGraph.h:41
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
const Int_t n
Definition legend1.C:16