Changeset 514 in Sophya for trunk/SophyaLib/NTools/generaldata.cc
- Timestamp:
- Oct 25, 1999, 6:43:04 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/generaldata.cc
r508 r514 14 14 #include "pexceptions.h" 15 15 #include "objfio.h" 16 17 using namespace PlanckDPC;18 16 19 17 //================================================================ … … 748 746 if(varx<0 || varx>=mNVar) return -2.; 749 747 if(mNDataGood<=0) return -4.; 750 OVector x(mNDataGood);751 OVector y(mNDataGood);752 OVector ey2(1);748 Vector x(mNDataGood); 749 Vector y(mNDataGood); 750 Vector ey2(1); 753 751 if(ey) ey2.Realloc(mNDataGood,true); 754 752 int ntest = 0; … … 763 761 double res = 0.; 764 762 if(ey) { 765 OVector errcoef(1);763 Vector errcoef(1); 766 764 res = pol.Fit(x,y,ey2,degre,errcoef); 767 765 } else { … … 797 795 if(vary<0 || vary>=mNVar || vary==varx) return -3.; 798 796 if(mNDataGood<=0) return -4.; 799 OVector x(mNDataGood);800 OVector y(mNDataGood);801 OVector z(mNDataGood);802 OVector ez2(1);797 Vector x(mNDataGood); 798 Vector y(mNDataGood); 799 Vector z(mNDataGood); 800 Vector ez2(1); 803 801 if(ez) ez2.Realloc(mNDataGood,true); 804 802 int ntest = 0; … … 814 812 double res = 0.; 815 813 if(ez) { 816 OVector errcoef(1);814 Vector errcoef(1); 817 815 if(degre2>0) res = pol.Fit(x,y,z,ez2,degre1,degre2,errcoef); 818 816 else res = pol.Fit(x,y,z,ez2,degre1,errcoef);
Note:
See TracChangeset
for help on using the changeset viewer.