IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2005, 12:34:59 PM (21 years ago)
Author:
gusciora
Message:

Fixes bugs 338. Deeals with robust stats, and min->lastDelta.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psMinimize.c

    r3540 r3547  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.108 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-03-29 19:41:56 $
     11 *  @version $Revision: 1.109 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-03-29 22:34:59 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    786786        //
    787787        if (currChi2 > newChi2) {
    788             min->lastDelta = currChi2 - newChi2;
     788            min->lastDelta = (currChi2 - newChi2)/currChi2;
    789789            min->value = newChi2;
    790790
     
    14061406with an initial guess at the parameters of that function and vector "line"
    14071407of the same size as the parameter vector.  It will minimize the function
    1408 along that vector anr returns the offset along that vector at which the
     1408along that vector and returns the offset along that vector at which the
    14091409minimum is determined.
    14101410 
     
    17131713            psFree(v);
    17141714            min->iter = iterationNumber;
     1715            // XXX: Ensure that currFuncVal is the correct value to use here.
     1716            min->value = currFuncVal;
    17151717            psTrace(".psLib.dataManip.psMinimizePowell", 4,
    17161718                    "---- psMinimizePowell() end (1)(true) ----\n");
     
    17491751        if (fabs(baseFuncVal - currFuncVal) <= min->tol) {
    17501752            psFree(v);
     1753            // XXX: Ensure that currFuncVal is the correct value to use here.
     1754            min->value = currFuncVal;
    17511755            min->iter = iterationNumber;
    17521756            psTrace(".psLib.dataManip.psMinimizePowell", 4,
Note: See TracChangeset for help on using the changeset viewer.