]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliSample.cxx
Replacing rindex by strrchr
[u/mrichter/AliRoot.git] / RALICE / AliSample.cxx
index b4c624cdb465bdcc363742e3db361f99e65f6ade..c0843df758f07d0fdf2b2323c9e115eeae611960 100644 (file)
  * 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<fDim; i++)
@@ -367,12 +366,12 @@ void AliSample::Info()
  }
 }
 ///////////////////////////////////////////////////////////////////////////
-void AliSample::Info(Int_t i)
+void AliSample::Data(Int_t i)
 {
 // Printing of statistics of ith variable
  if (fDim < i)
  {
-  cout << " *AliSample::Info(i)* Error : Dimension less than " << i << endl;
+  cout << " *AliSample::Data(i)* Error : Dimension less than " << i << endl;
  }
  else
  {
@@ -382,14 +381,14 @@ void AliSample::Info(Int_t i)
  }
 }
 ///////////////////////////////////////////////////////////////////////////
-void AliSample::Info(Int_t i,Int_t j)
+void AliSample::Data(Int_t i,Int_t j)
 {
 // Printing of covariance and correlation between variables i and j
  if ((fDim < i) || (fDim < j))
  {
   Int_t k=i;
   if (j > 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
  {