IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5596


Ignore:
Timestamp:
Nov 25, 2005, 1:25:16 PM (21 years ago)
Author:
magnier
Message:

fixed bug in psVectorClipFitPolynomial1D test for stats->min,max

File:
1 edited

Legend:

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

    r5570 r5596  
    1010 *  @author EAM, IfA
    1111 *
    12  *  @version $Revision: 1.142.6.2 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-11-22 19:54:55 $
     12 *  @version $Revision: 1.142.6.2.2.1 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-11-25 23:25:16 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    18721872
    18731873// This function accepts F32 and F64 input vectors.
     1874// XXX EAM : note that the value used to mask new points must be
     1875//           part of the maskValue
    18741876psPolynomial1D *psVectorClipFitPolynomial1D(
    18751877    psPolynomial1D *poly,
     
    19131915    float maxClipSigma;
    19141916    if (isfinite(stats->max)) {
     1917        maxClipSigma = fabs(stats->max);
     1918    } else {
    19151919        maxClipSigma = fabs(stats->clipSigma);
     1920    }
     1921    if (isfinite(stats->min)) {
     1922        minClipSigma = fabs(stats->min);
    19161923    } else {
    1917         maxClipSigma = fabs(stats->max);
    1918     }
    1919     if (isfinite(stats->min)) {
    19201924        minClipSigma = fabs(stats->clipSigma);
    1921     } else {
    1922         minClipSigma = fabs(stats->min);
    19231925    }
    19241926    psVector *fit   = NULL;
     
    19411943        float minClipValue = -minClipSigma*stats->sampleStdev;
    19421944        float maxClipValue = +maxClipSigma*stats->sampleStdev;
     1945
     1946        psTrace (".psphot.VectorClipFit", 4, "residual stats for robust fit:  %g +/- %g\n",
     1947                 stats->sampleMedian, stats->sampleStdev);
    19431948
    19441949        // set mask if pts are not valid
Note: See TracChangeset for help on using the changeset viewer.