IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2005, 10:49:43 AM (20 years ago)
Author:
magnier
Message:

upper and lower clipping tests (isfinite(stats->max)) were backwards

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_b0/psLib/src/math/psMinimize.c

    r5655 r5733  
    1010 *  @author EAM, IfA
    1111 *
    12  *  @version $Revision: 1.147 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-12-01 23:36:23 $
     12 *  @version $Revision: 1.147.4.1 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-12-07 20:49:43 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    19321932    float maxClipSigma;
    19331933    if (isfinite(stats->max)) {
     1934        maxClipSigma = fabs(stats->max);
     1935    } else {
    19341936        maxClipSigma = fabs(stats->clipSigma);
     1937    }
     1938    if (isfinite(stats->min)) {
     1939        minClipSigma = fabs(stats->min);
    19351940    } else {
    1936         maxClipSigma = fabs(stats->max);
    1937     }
    1938     if (isfinite(stats->min)) {
    19391941        minClipSigma = fabs(stats->clipSigma);
    1940     } else {
    1941         minClipSigma = fabs(stats->min);
    19421942    }
    19431943    psVector *fit   = NULL;
Note: See TracChangeset for help on using the changeset viewer.