IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2006, 4:26:44 PM (20 years ago)
Author:
jhoblitt
Message:

normalize psTrace() facility names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMinimizeLMM.c

    r7914 r8245  
    1010 *  @author EAM, IfA
    1111 *
    12  *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-07-15 02:57:12 $
     12 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-08-09 02:26:44 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    7171
    7272    // LU decomposition version
    73     psTrace(__func__, 5, "using LUD version\n");
     73    psTrace("psLib.math", 5, "using LUD version\n");
    7474
    7575    // set new guess values (creates matrix A)
     
    103103    # else
    104104        // gauss-jordan version
    105         psTrace(__func__, 5, "using Gauss-J version");
     105        psTrace("psLib.math", 5, "using Gauss-J version");
    106106
    107107    // set new guess values (creates matrix A)
     
    158158    psMinimizeLMChi2Func func)
    159159{
    160     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     160    psTrace("psLib.math", 3, "---- %s() begin ----\n", __func__);
    161161    // allocate internal arrays (current vs Guess)
    162162    psImage  *alpha  = psImageAlloc (params->n, params->n, PS_TYPE_F64);
     
    184184        rc = false;
    185185    }
    186     psTrace(__func__, 5, "p_psMinLM_SetABX() was succesful\n", __func__);
     186    psTrace("psLib.math", 5, "p_psMinLM_SetABX() was succesful\n", __func__);
    187187
    188188    psBool rcBool = p_psMinLM_GuessABP(Alpha, delta, Params, alpha, beta, params, paramMask, NULL, NULL, NULL, 0.0);
     
    191191        rc = false;
    192192    }
    193     psTrace(__func__, 5, "p_psMinLM_GuessABP() was succesful\n", __func__);
     193    psTrace("psLib.math", 5, "p_psMinLM_GuessABP() was succesful\n", __func__);
    194194
    195195    psFree(alpha);
     
    200200        psFree(dy);
    201201    }
    202     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     202    psTrace("psLib.math", 3, "---- %s() end ----\n", __func__);
    203203    return(rc);
    204204}
     
    335335    psMinimizeLMChi2Func func)
    336336{
    337     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     337    psTrace("psLib.math", 3, "---- %s() begin ----\n", __func__);
    338338    PS_ASSERT_PTR_NON_NULL(min, false);
    339339    // XXX: If covar not NULL, do asserts...
     
    415415    }
    416416    if (psTraceGetLevel (__func__) >= 6) {
    417         psTrace(__func__, 6, "The current Param vector: \n");
     417        psTrace("psLib.math", 6, "The current Param vector: \n");
    418418        for (psS32 i = 0 ; i < Params->n ; i++) {
    419             psTrace(__func__, 6, "Params[%d] is %f\n", Params->data.F32[i]);
     419            psTrace("psLib.math", 6, "Params[%d] is %f\n", Params->data.F32[i]);
    420420        }
    421421    }
     
    423423    // iterate until the tolerance is reached, or give up
    424424    while ((min->iter < min->maxIter) && ((min->lastDelta > min->tol) || !isfinite(min->lastDelta))) {
    425         psTrace(__func__, 5, "Iteration number %d.  (max iterations is %d).\n", min->iter, min->maxIter);
    426         psTrace(__func__, 5, "Last delta is %f.  Min->tol is %f.\n", min->lastDelta, min->tol);
     425        psTrace("psLib.math", 5, "Iteration number %d.  (max iterations is %d).\n", min->iter, min->maxIter);
     426        psTrace("psLib.math", 5, "Last delta is %f.  Min->tol is %f.\n", min->lastDelta, min->tol);
    427427
    428428        // set a new guess for Alpha, Beta, Params
     
    445445        if (psTraceGetLevel(__func__) >= 6) {
    446446            if (psTraceGetLevel (__func__) >= 6) {
    447                 psTrace(__func__, 6, "The current Param vector: \n");
     447                psTrace("psLib.math", 6, "The current Param vector: \n");
    448448                for (psS32 i = 0 ; i < Params->n ; i++) {
    449                     psTrace(__func__, 6, "Params[%d] is %f\n", Params->data.F32[i]);
     449                    psTrace("psLib.math", 6, "Params[%d] is %f\n", Params->data.F32[i]);
    450450                }
    451451            }
     
    466466        psF64 rho = (min->value - Chisq) / dLinear;
    467467
    468         psTrace(__func__, 5, "last chisq: %f, new chisq %f, delta: %f, rho: %f\n", min->value,
     468        psTrace("psLib.math", 5, "last chisq: %f, new chisq %f, delta: %f, rho: %f\n", min->value,
    469469                Chisq, min->lastDelta, rho);
    470470
     
    489489        min->iter++;
    490490    }
    491     psTrace(__func__, 5, "chisq: %f, last delta: %f, Niter: %d\n", min->value, min->lastDelta, min->iter);
     491    psTrace("psLib.math", 5, "chisq: %f, last delta: %f, Niter: %d\n", min->value, min->lastDelta, min->iter);
    492492
    493493    // construct & return the covariance matrix (if requested)
     
    509509    }
    510510    if (min->iter == min->maxIter) {
    511         psTrace(__func__, 3, "---- %s(false) end ----\n", __func__);
     511        psTrace("psLib.math", 3, "---- %s(false) end ----\n", __func__);
    512512        return(false);
    513513    }
    514     psTrace(__func__, 3, "---- %s(true) end ----\n", __func__);
     514    psTrace("psLib.math", 3, "---- %s(true) end ----\n", __func__);
    515515    return(true);
    516516}
Note: See TracChangeset for help on using the changeset viewer.