Changeset 37510 for trunk/psLib
- Timestamp:
- Oct 20, 2014, 5:25:31 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMinimizePolyFit.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMinimizePolyFit.c
r37404 r37510 731 731 scale = false; 732 732 } 733 734 if (median == 0.0) { 735 if (sigma <= 0.0) { 736 scale = false; // Try with what we started with. 737 } 738 else { 739 median = 0.1 * sigma; 740 } 741 } 742 733 743 // I can't see a way to not clobber x if it's already F64, so make a copy.x 734 744 psVector *z64 = psVectorCopy(NULL,x64,PS_TYPE_F64); … … 740 750 #endif 741 751 742 743 752 result = VectorFitPolynomial1DOrd(poly, mask, maskValue, f64, fErr64, z64); 744 753 psFree(z64); // Done with this.
Note:
See TracChangeset
for help on using the changeset viewer.
