IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14327


Ignore:
Timestamp:
Jul 19, 2007, 2:52:15 PM (19 years ago)
Author:
eugene
Message:

update to use modified psMinLM_GuessABP API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotModelWithPSF.c

    r13983 r14327  
    4444    psF32 Chisq = 0.0;
    4545    psF32 lambda = 0.001;
     46    psF32 dLinear = 0.0;
    4647
    4748    // calculate initial alpha and beta, set chisq (min->value)
     
    6566        psTrace("psLib.math", 5, "Last delta is %f.  Min->tol is %f.\n", min->lastDelta, min->tol);
    6667
     68
    6769        // set a new guess for Alpha, Beta, Params
    68         if (!psMinLM_GuessABP(Alpha, Beta, Params, alpha, beta, params, paramMask, checkLimits, lambda)) {
     70        if (!psMinLM_GuessABP(Alpha, Beta, Params, alpha, beta, params, paramMask, checkLimits, lambda, &dLinear)) {
    6971            min->iter ++;
    7072            lambda *= 10.0;
    7173            continue;
    7274        }
    73 
    74         // measure linear model prediction
    75         psF32 dLinear = psMinLM_dLinear(Beta, beta, lambda);
    7675
    7776        // dump some useful info if trace is defined
     
    124123    // construct & return the covariance matrix (if requested)
    125124    if (covar != NULL) {
    126         if (!psMinLM_GuessABP(covar, Beta, Params, alpha, beta, params, paramMask, NULL, 0.0)) {
     125        if (!psMinLM_GuessABP(covar, Beta, Params, alpha, beta, params, paramMask, NULL, 0.0, NULL)) {
    127126            psTrace ("psLib.math", 5, "failure to calculate covariance matrix\n");
    128127        }
Note: See TracChangeset for help on using the changeset viewer.