IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 6, 2006, 12:17:54 PM (20 years ago)
Author:
gusciora
Message:

These changes incorporate the new psMinimizeLMM prototype.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmObjects.c

    r6325 r6329  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-02-06 21:03:25 $
     8 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-02-06 22:17:54 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    16541654    psTrace (".pmObjects.pmSourceFitModel", 5, "fitting function\n");
    16551655
    1656     /* XXXX: Must change this:
    1657         fitStatus = psMinimizeLMChi2(myMin, covar, params, paramMask, x, y,
    1658                                      yErr, modelFunc);
    1659     */
     1656    psMinConstrain *constrain = psMinConstrainAlloc();
     1657    constrain->paramMask = paramMask;
     1658    fitStatus = psMinimizeLMChi2(myMin, covar, params, constrain,
     1659                                 x, y, yErr, modelFunc);
     1660    psFree(constrain);
    16601661    for (int i = 0; i < dparams->n; i++) {
    16611662        if ((paramMask != NULL) && paramMask->data.U8[i])
     
    18231824
    18241825    psTrace (".pmObjects.pmSourceFitModel", 5, "fitting function\n");
    1825     /* XXXX: Must change this:
    1826         fitStatus = psMinimizeLMChi2(myMin, covar, params, paramMask, x, y, yErr, modelFunc);
    1827     */
     1826    psMinConstrain *constrain = psMinConstrainAlloc();
     1827    constrain->paramMask = paramMask;
     1828    fitStatus = psMinimizeLMChi2(myMin, covar, params, constrain,
     1829                                 x, y, yErr, modelFunc);
     1830    psFree(constrain);
    18281831    for (int i = 0; i < dparams->n; i++) {
    18291832        if ((paramMask != NULL) && paramMask->data.U8[i])
Note: See TracChangeset for help on using the changeset viewer.