IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 17, 2006, 9:31:44 PM (20 years ago)
Author:
magnier
Message:

working on new linear fit process

File:
1 edited

Legend:

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

    r9730 r10075  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-10-24 22:55:05 $
     8 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-11-18 07:31:44 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5151                       pmSourceFitMode mode)
    5252{
    53     psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
     53    psTrace("psModules.objects", 5, "---- %s() begin ----\n", __func__);
    5454    PS_ASSERT_PTR_NON_NULL(source, false);
    5555    PS_ASSERT_PTR_NON_NULL(source->moments, false);
     
    163163
    164164    if (nPix <  nParams + 1) {
    165         psTrace (".pmObjects.pmSourceFitModel", 4, "insufficient valid pixels\n");
    166         psTrace("psModules.objects", 3, "---- %s(false) end ----\n", __func__);
     165        psTrace ("psModules.objects", 4, "insufficient valid pixels\n");
     166        psTrace ("psModules.objects", 5, "---- %s(false) end ----\n", __func__);
    167167        model->status = PM_MODEL_BADARGS;
    168168        psFree (x);
     
    189189    psImage *covar = psImageAlloc (params->n, params->n, PS_TYPE_F64);
    190190
    191     psTrace (".pmObjects.pmSourceFitModel", 5, "fitting function\n");
     191    psTrace (__func__, 5, "fitting function\n");
    192192
    193193    fitStatus = psMinimizeLMChi2(myMin, covar, params, constrain, x, y, yErr, modelFunc);
    194194    for (int i = 0; i < dparams->n; i++) {
     195        psTrace ("psModules.objects", 4, "%f ", params->data.F32[i]);
    195196        if ((paramMask != NULL) && paramMask->data.U8[i])
    196197            continue;
    197198        dparams->data.F32[i] = sqrt(covar->data.F64[i][i]);
    198199    }
     200    psTrace ("psModules.objects", 4, "niter: %d, chisq: %f", myMin->iter, myMin->value);
    199201
    200202    // save the resulting chisq, nDOF, nIter
     
    245247
    246248    rc = (onPic && fitStatus);
    247     psTrace("psModules.objects", 3, "---- %s(%d) end ----\n", __func__, rc);
     249    psTrace("psModules.objects", 5, "---- %s(%d) end ----\n", __func__, rc);
    248250    return(rc);
    249251}
Note: See TracChangeset for help on using the changeset viewer.