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


Ignore:
Timestamp:
Oct 25, 1999, 6:43:04 PM (26 years ago)
Author:
ansari
Message:

elimination des OVector/OMatrix au profit des TVector/TMatrix cmv 25/10/99

File:
1 edited

Legend:

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

    r508 r514  
    1414#include "pexceptions.h"
    1515#include "objfio.h"
    16 
    17 using namespace PlanckDPC;
    1816
    1917//================================================================
     
    748746if(varx<0 || varx>=mNVar) return -2.;
    749747if(mNDataGood<=0) return -4.;
    750 OVector x(mNDataGood);
    751 OVector y(mNDataGood);
    752 OVector ey2(1);
     748Vector x(mNDataGood);
     749Vector y(mNDataGood);
     750Vector ey2(1);
    753751if(ey) ey2.Realloc(mNDataGood,true);
    754752int ntest = 0;
     
    763761double res = 0.;
    764762if(ey) {
    765   OVector errcoef(1);
     763  Vector errcoef(1);
    766764  res = pol.Fit(x,y,ey2,degre,errcoef);
    767765} else {
     
    797795if(vary<0 || vary>=mNVar || vary==varx) return -3.;
    798796if(mNDataGood<=0) return -4.;
    799 OVector x(mNDataGood);
    800 OVector y(mNDataGood);
    801 OVector z(mNDataGood);
    802 OVector ez2(1);
     797Vector x(mNDataGood);
     798Vector y(mNDataGood);
     799Vector z(mNDataGood);
     800Vector ez2(1);
    803801if(ez) ez2.Realloc(mNDataGood,true);
    804802int ntest = 0;
     
    814812double res = 0.;
    815813if(ez) {
    816   OVector errcoef(1);
     814  Vector errcoef(1);
    817815  if(degre2>0) res = pol.Fit(x,y,z,ez2,degre1,degre2,errcoef);
    818816  else         res = pol.Fit(x,y,z,ez2,degre1,errcoef);
Note: See TracChangeset for help on using the changeset viewer.