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


Ignore:
Timestamp:
Oct 25, 1999, 12:36:22 PM (26 years ago)
Author:
ansari
Message:

Vector/Matrix OVector/OMatrix cmv 25/10/99

File:
1 edited

Legend:

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

    r490 r508  
    748748if(varx<0 || varx>=mNVar) return -2.;
    749749if(mNDataGood<=0) return -4.;
    750 Vector x(mNDataGood);
    751 Vector y(mNDataGood);
    752 Vector ey2(1);
     750OVector x(mNDataGood);
     751OVector y(mNDataGood);
     752OVector ey2(1);
    753753if(ey) ey2.Realloc(mNDataGood,true);
    754754int ntest = 0;
     
    763763double res = 0.;
    764764if(ey) {
    765   Vector errcoef(1);
     765  OVector errcoef(1);
    766766  res = pol.Fit(x,y,ey2,degre,errcoef);
    767767} else {
     
    797797if(vary<0 || vary>=mNVar || vary==varx) return -3.;
    798798if(mNDataGood<=0) return -4.;
    799 Vector x(mNDataGood);
    800 Vector y(mNDataGood);
    801 Vector z(mNDataGood);
    802 Vector ez2(1);
     799OVector x(mNDataGood);
     800OVector y(mNDataGood);
     801OVector z(mNDataGood);
     802OVector ez2(1);
    803803if(ez) ez2.Realloc(mNDataGood,true);
    804804int ntest = 0;
     
    814814double res = 0.;
    815815if(ez) {
    816   Vector errcoef(1);
     816  OVector errcoef(1);
    817817  if(degre2>0) res = pol.Fit(x,y,z,ez2,degre1,degre2,errcoef);
    818818  else         res = pol.Fit(x,y,z,ez2,degre1,errcoef);
Note: See TracChangeset for help on using the changeset viewer.