IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 21, 2014, 3:17:30 PM (12 years ago)
Author:
watersc1
Message:

Let's be safe against sigma being small as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMinimizePolyFit.c

    r37515 r37516  
    733733          // scaling,
    734734          median_zero = true;
    735           if ((sigma == 1.0)||(sigma <= 0.0)) {
     735          if ((sigma == 1.0)||(fabs(sigma) <= 1e-10)) {
    736736            // Don't bother scaling if sigma is unity (it's already scaled) or if the sigma calculation has gone wrong.
    737737            scale = false;
Note: See TracChangeset for help on using the changeset viewer.