X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=RALICE%2FAliSample.cxx;h=c0843df758f07d0fdf2b2323c9e115eeae611960;hb=58c5356d3640b59877a0d3444ac3fb6f17898e23;hp=b4c624cdb465bdcc363742e3db361f99e65f6ade;hpb=959fbac55c99883f629c3c4797ac5b89fd3ab079;p=u%2Fmrichter%2FAliRoot.git diff --git a/RALICE/AliSample.cxx b/RALICE/AliSample.cxx index b4c624cdb46..c0843df758f 100644 --- a/RALICE/AliSample.cxx +++ b/RALICE/AliSample.cxx @@ -13,21 +13,16 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* -$Log$ -Revision 1.2 1999/09/29 09:24:28 fca -Introduction of the Copyright and cvs Log - -*/ +// $Id$ /////////////////////////////////////////////////////////////////////////// // Class AliSample -// Perform statistics on various multi-dimensional data samples +// Perform statistics on various multi-dimensional data samples. // A data sample can be filled using the "Enter" and/or "Remove" functions, // whereas the "Reset" function resets the complete sample to 'empty'. // The info which can be extracted from a certain data sample are the // sum, mean, variance, sigma, covariance and correlation. -// The "Info" function provides all statistics data for a certain sample. +// The "Data" function provides all statistics data for a certain sample. // The variables for which these stat. parameters have to be calculated // are indicated by the index of the variable which is passed as an // argument to the various member functions. @@ -39,14 +34,18 @@ Introduction of the Copyright and cvs Log // the mean_x can be obtained as s.GetMean(1) whereas the mean_y is obtained // via s.GetMean(2). // The correlation between x and y is available via s.GetCor(1,2). -// The x-statistics are obtained via s.Info(1), y-statistics via s.Info(2), -// and the covariance and correlation between x and y via s.Info(1,2). -// All statistics of a sample are obtained via s.Info(). +// The x-statistics are obtained via s.Data(1), y-statistics via s.Data(2), +// and the covariance and correlation between x and y via s.Data(1,2). +// All statistics of a sample are obtained via s.Data(). // //--- Author: Nick van Eijndhoven 30-mar-1996 CERN Geneva +//- Modified: NvE $Date$ UU-SAP Utrecht /////////////////////////////////////////////////////////////////////////// #include "AliSample.h" +#include "Riostream.h" + +ClassImp(AliSample) // Class implementation to enable ROOT I/O AliSample::AliSample() { @@ -356,7 +355,7 @@ Float_t AliSample::GetCor(Int_t i,Int_t j) } } /////////////////////////////////////////////////////////////////////////// -void AliSample::Info() +void AliSample::Data() { // Printing of statistics of all variables for (Int_t i=0; i i) k=j; - cout << " *AliSample::Info(i,j)* Error : Dimension less than " << k << endl; + cout << " *AliSample::Data(i,j)* Error : Dimension less than " << k << endl; } else {