Changeset 508 in Sophya for trunk/SophyaLib/NTools/generaldata.cc
- Timestamp:
- Oct 25, 1999, 12:36:22 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/generaldata.cc
r490 r508 748 748 if(varx<0 || varx>=mNVar) return -2.; 749 749 if(mNDataGood<=0) return -4.; 750 Vector x(mNDataGood);751 Vector y(mNDataGood);752 Vector ey2(1);750 OVector x(mNDataGood); 751 OVector y(mNDataGood); 752 OVector ey2(1); 753 753 if(ey) ey2.Realloc(mNDataGood,true); 754 754 int ntest = 0; … … 763 763 double res = 0.; 764 764 if(ey) { 765 Vector errcoef(1);765 OVector errcoef(1); 766 766 res = pol.Fit(x,y,ey2,degre,errcoef); 767 767 } else { … … 797 797 if(vary<0 || vary>=mNVar || vary==varx) return -3.; 798 798 if(mNDataGood<=0) return -4.; 799 Vector x(mNDataGood);800 Vector y(mNDataGood);801 Vector z(mNDataGood);802 Vector ez2(1);799 OVector x(mNDataGood); 800 OVector y(mNDataGood); 801 OVector z(mNDataGood); 802 OVector ez2(1); 803 803 if(ez) ez2.Realloc(mNDataGood,true); 804 804 int ntest = 0; … … 814 814 double res = 0.; 815 815 if(ez) { 816 Vector errcoef(1);816 OVector errcoef(1); 817 817 if(degre2>0) res = pol.Fit(x,y,z,ez2,degre1,degre2,errcoef); 818 818 else res = pol.Fit(x,y,z,ez2,degre1,errcoef);
Note:
See TracChangeset
for help on using the changeset viewer.