IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10257


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

updates to psMinimizeLMM functions

Location:
trunk/psModules/src
Files:
2 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);
  • trunk/psModules/src/objects/pmModelGroup.h

    r7478 r10257  
    99 *  @author EAM, IfA
    1010 *
    11  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-06-10 02:58:43 $
     11 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-11-29 02:36:07 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2121//  This function is the model chi-square minimization function for this model.
    2222typedef psMinimizeLMChi2Func pmModelFunc;
     23
     24//  This function is the model chi-square minimization function for this model.
     25typedef psMinimizeLMLimitFunc pmModelLimits;
    2326
    2427// This function returns the integrated flux for the given model parameters.
     
    3235/*  This function sets the model parameter limits vectors for the given model
    3336 */
    34 typedef bool (*pmModelLimits)(psVector **beta_lim, psVector **params_min, psVector **params_max);
     37// typedef bool (*pmModelLimits)(psVector **beta_lim, psVector **params_min, psVector **params_max);
    3538
    3639/*  This function provides the model guess parameters based on the details of
Note: See TracChangeset for help on using the changeset viewer.