Re: [ROOT] correlation coefficient in ROOT

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Sep 20 2001 - 22:50:46 MEST


Hi Thomas,

In the development version in the CVS head, I have added
the following functions:

   Double_t GetCorrelationFactor() const;
   Double_t GetCovariance() const;
   Double_t GetMean(Int_t axis=1) const;
   Double_t GetRMS(Int_t axis=1) const;

Rene Brun


On Thu, 20 Sep 2001, Thomas Schietinger wrote:

> Hi rooters,
> 
> given two columns of numbers, x[i] and y[i] (stored, for instance,
> in a TGraph) I would like to know the correlation between the two
> variables. Is there an easy way to do that in ROOT? I couldn't find
> anything appropriate. There is a method GetCorrelationFactor in TH2,
> but if possible I don't want to bin my data.
> 
> Thanks, Thomas
> 
> ----------------------------------------------------------
>  Thomas.Schietinger@SLAC.Stanford.edu
>  SLAC, Mail Stop 95, PO Box 20450, Stanford CA 94309, USA
>  Tel: (650)-926-2707  Fax: (650)-926-2657
> ----------------------------------------------------------
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:00 MET