IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6202


Ignore:
Timestamp:
Jan 26, 2006, 9:07:53 AM (20 years ago)
Author:
gusciora
Message:

Unset trace levels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/math/tst_psMinimize06.c

    r5183 r6202  
    2929             psVector *x)
    3030{
    31     if ((deriv == NULL) || (params == NULL)) {
    32         psError(PS_ERR_UNKNOWN, true, "deriv or params is NULL.\n");
     31    if ((deriv == NULL) || (params == NULL) || (x == NULL)) {
     32        psError(PS_ERR_UNKNOWN, true, "deriv or params or x is NULL.\n");
    3333    }
    3434
     
    5151{
    5252    psS32 currentId = psMemGetId();
    53     psTraceSetLevel(".psLib", 0);
    54     /**************************************************************************
    55      *************************************************************************/
     53
    5654    psMinimization *min = psMinimizationAlloc(NUM_ITERATIONS, ERR_TOL);
    5755    psImage *myCovar = psImageAlloc(NUM_PARAMS, NUM_PARAMS, PS_TYPE_F32);
     
    7472    }
    7573
    76     psBool rc = psMinimizeLMChi2(min,
    77                                  NULL,
    78                                  myParams,
    79                                  NULL,
    80                                  myCoords,
    81                                  y,
    82                                  NULL,
     74    psBool rc = psMinimizeLMChi2(min, NULL, myParams, NULL, myCoords, y, NULL,
    8375                                 (psMinimizeLMChi2Func) myFunc);
    8476    if (rc == false) {
     
    8981        printf("\nThe value of the function at the minimum is %f\n", min->value);
    9082        for (psS32 i=0;i<NUM_DATA_POINTS;i++) {
    91             printf("The minimum for data point %d: %f\n", i, myFunc(myDerivs, myParams, (psVector *) myCoords->data[i]));
     83            printf("The minimum for data point number %d: f is %.2f\n",
     84                   i, myFunc(myDerivs, myParams, (psVector *) myCoords->data[i]));
    9285            fflush(stdout);
    9386        }
Note: See TracChangeset for help on using the changeset viewer.