IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7182


Ignore:
Timestamp:
May 23, 2006, 11:04:51 AM (20 years ago)
Author:
drobbin
Message:

fixed stdout so all machine outputs will match.

Location:
trunk/psLib/test/math
Files:
2 edited

Legend:

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

    r7181 r7182  
    110110    } else {
    111111        printf("Minimisation took %d iterations\n", min->iter);
    112         printf("chi^2 at the minimum is %f\n", min->value);
     112        printf("chi^2 at the minimum is %.3g\n", min->value);
    113113        for (long i = 0; i < NUM_PARAMS; i++) {
    114             printf("Parameter %ld at the minimum is %f, expected: %f\n", i,
     114            printf("Parameter %ld at the minimum is %.3f, expected: %f\n", i,
    115115                   params->data.F32[i], trueParams->data.F32[i]);
    116116            fflush(stdout);
  • trunk/psLib/test/math/verified/tst_psMinimizeLMM.stdout

    r7181 r7182  
    11Minimisation took 17 iterations
    2 chi^2 at the minimum is 1.127871
    3 Parameter 0 at the minimum is 107.844078, expected: 100.000000
    4 Parameter 1 at the minimum is 2.961946, expected: 3.000000
    5 Parameter 2 at the minimum is 9.881010, expected: 10.000000
     2chi^2 at the minimum is 1.13
     3Parameter 0 at the minimum is 107.844, expected: 100.000000
     4Parameter 1 at the minimum is 2.962, expected: 3.000000
     5Parameter 2 at the minimum is 9.881, expected: 10.000000
    66Mean relative difference is -0.006533
    77The LMM minimization tests PASSED.
Note: See TracChangeset for help on using the changeset viewer.