Changeset 938 in Sophya for trunk/SophyaLib/NTools/generaldata.cc


Ignore:
Timestamp:
Apr 14, 2000, 6:14:31 PM (25 years ago)
Author:
ansari
Message:

Vector,Matrix -> TVector,TMatrix<r_8> cmv 14/4/00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/generaldata.cc

    r926 r938  
    722722if(varx<0 || varx>=mNVar) return -2.;
    723723if(mNDataGood<=0) return -4.;
    724 Vector x(mNDataGood);
    725 Vector y(mNDataGood);
    726 Vector ey2(1);
     724TVector<r_8> x(mNDataGood);
     725TVector<r_8> y(mNDataGood);
     726TVector<r_8> ey2(1);
    727727if(ey) ey2.Realloc(mNDataGood,true);
    728728int ntest = 0;
     
    737737double res = 0.;
    738738if(ey) {
    739   Vector errcoef(1);
     739  TVector<r_8> errcoef(1);
    740740  res = pol.Fit(x,y,ey2,degre,errcoef);
    741741} else {
     
    771771if(vary<0 || vary>=mNVar || vary==varx) return -3.;
    772772if(mNDataGood<=0) return -4.;
    773 Vector x(mNDataGood);
    774 Vector y(mNDataGood);
    775 Vector z(mNDataGood);
    776 Vector ez2(1);
     773TVector<r_8> x(mNDataGood);
     774TVector<r_8> y(mNDataGood);
     775TVector<r_8> z(mNDataGood);
     776TVector<r_8> ez2(1);
    777777if(ez) ez2.Realloc(mNDataGood,true);
    778778int ntest = 0;
     
    788788double res = 0.;
    789789if(ez) {
    790   Vector errcoef(1);
     790  TVector<r_8> errcoef(1);
    791791  if(degre2>0) res = pol.Fit(x,y,z,ez2,degre1,degre2,errcoef);
    792792  else         res = pol.Fit(x,y,z,ez2,degre1,errcoef);
Note: See TracChangeset for help on using the changeset viewer.