IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2006, 4:36:07 PM (20 years ago)
Author:
magnier
Message:

updates to psMinimizeLMM functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmShutterCorrection.c

    r9997 r10257  
    301301
    302302    // XXX for the moment, don't set any constraints
    303     // psMinConstrain *constrain = psMinConstrainAlloc();
    304     // constrain->paramDelta = psVectorAlloc (3, PS_TYPE_F32);
    305     // constrain->paramMin   = psVectorAlloc (3, PS_TYPE_F32);
    306     // constrain->paramMax   = psVectorAlloc (3, PS_TYPE_F32);
    307     // constrain->paramMask  = NULL;
    308     psMinConstrain *constrain = NULL;   // Constraints on the minimization
     303    // psMinConstraint *constraint = psMinConstraintAlloc();
     304    // constrain->checkLimits = pmShutterParamLimits;
     305    // constrain->paramMask   = NULL;
     306    psMinConstraint *constraint = NULL;   // Constraints on the minimization
    309307
    310308    // XXX ignore covariance matrix for the moment
     
    321319    }
    322320
    323     if (!psMinimizeLMChi2(minInfo, covar, params, constrain, x, counts, cntError, pmShutterCorrectionModel)) {
     321    if (!psMinimizeLMChi2(minInfo, covar, params, constraint, x, counts, cntError, pmShutterCorrectionModel)) {
    324322        psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to fit for shutter correction.\n");
    325323        psFree(x);
Note: See TracChangeset for help on using the changeset viewer.