Double_t GetMeanYX()const{// return mean Y*X
return GetYXNth(1);};
Int_t GetN()const{// retrun the number of entries
+ // Int_t n=0; n=fN;if(fOver!=0) n+=fOver->GetN(); return n;
return fN;};
Int_t GetOrder()const{// return the maximum moment order
return fOrder;};
Double_t GetXN (Int_t order)const{// returns x^n
+ // Double_t x=0.0; x = fX[order-1];if(fOver!=0) x+=fOver->GetXN(order);
return fX[order-1];};
Double_t GetYN (Int_t order)const{// returns y^n
+ // Double_t y=0.0; y = fY[order-1];if(fOver!=0) y+=fOver->GetYN(order);
return fY[order-1];};
Double_t GetYXN(Int_t order)const{// returns (yx)^n
+ // Double_t yx=0.0; yx = fYx[order-1];if(fOver!=0) yx+=fOver->GetYXN(order);
return fYx[order-1];};
Double_t GetWN (Int_t order)const{// returns w^n (weight)
+ // Double_t w=0.0; w = fW[order-1];if(fOver!=0) w+=fOver->GetWN(order);
return fW[order-1];};
Double_t GetRMSY()const; // Returns Y rms value
Double_t GetRMSX()const; // Returns X rms value
Double_t GetChiSquared(Double_t a,Double_t b)const;
// Fits data to a line of the form y=ax+b and returns values
// for a and b.
- Double_t FitToLine(Double_t &a,Double_t &b)const;
+ Double_t FitToLine(Double_t &a,Double_t &b)const
+ {Double_t ea,eb; return FitToLine(a,ea,b,eb);};
+ // Fits data to a line of the form y=ax+b and returns values
+ // for a and b and find errors on a and b.
+ Double_t FitToLine(Double_t &a,Double_t &ea,Double_t &b,Double_t &eb)const;
+ // Get the minimal significance value
+ // Int_t GetSignificantDigits()const{return fDig;}
+ // Set the minimal significance value
+ // void SetSignificantDigits(Int_t d);
// Print class in ascii form to stream
virtual void PrintAscii(ostream *os)const;
// Read in class in ascii form from stream
Double_t *fYx; //[fOrder] array of sums of (xy)^n
Double_t *fY; //[fOrder] array of sums of y^n
Double_t *fW; //[fOrder] array of sums of w^n (weights)
+ //Int_t fDig; // The number of significant digits to keep
+ //AliITSstatistics2 *fOver; //! In case of numerical precistion problems
ClassDef(AliITSstatistics2,1) //compute usueful statistics in 2D
};
ostream &operator<<(ostream &os,const AliITSstatistics2 &s);
istream &operator>>(istream &is,AliITSstatistics2 &s);
#endif
+