IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6332


Ignore:
Timestamp:
Feb 6, 2006, 12:27:20 PM (20 years ago)
Author:
desonia
Message:

reduced the precision of printing of float values to mitigate machine
differences between types of processors.

-rdd

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

Legend:

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

    r6291 r6332  
    8989
    9090        for (psS32 i=0;i<NUM_PARAMS;i++) {
    91             printf("Parameter %d at the minimum is %f (expected: %f)\n", i,
     91            printf("Parameter %d at the minimum is %.1f (expected: %.1f)\n", i,
    9292                   myParams->data.F32[i], expectedParm[i]);
    9393            fflush(stdout);
  • trunk/psLib/test/math/tst_psMinimizePowell.c

    r6280 r6332  
    108108
    109109    for (i=0;i<NUM_PARAMS;i++) {
    110         printf("Parameter %d at the minimum is %f (expected: %f)\n", i,
     110        printf("Parameter %d at the minimum is %.1f (expected: %.1f)\n", i,
    111111               myParams->data.F32[i], expectedParm[i]);
    112112
     
    181181
    182182    for (i=0;i<NUM_PARAMS;i++) {
    183         printf("Parameter %d at the minimum is %f (expected: %f)\n", i,
     183        printf("Parameter %d at the minimum is %.1f (expected: %.1f)\n", i,
    184184               myParams->data.F32[i], expectedParm[i]);
    185185
  • trunk/psLib/test/math/verified/tst_psMinimizeLMM.stdout

    r6291 r6332  
    2121The minimum for data point number 18: f is 18.00
    2222The minimum for data point number 19: f is 19.00
    23 Parameter 0 at the minimum is -3.391722 (expected: 2.420000)
    24 Parameter 1 at the minimum is -14.965391 (expected: 4.420000)
    25 Parameter 2 at the minimum is 2.076689 (expected: 6.420000)
    26 Parameter 3 at the minimum is 10.633801 (expected: 8.420000)
    27 Parameter 4 at the minimum is 1.315034 (expected: 10.420000)
     23Parameter 0 at the minimum is -3.4 (expected: 2.4)
     24Parameter 1 at the minimum is -15.0 (expected: 4.4)
     25Parameter 2 at the minimum is 2.1 (expected: 6.4)
     26Parameter 3 at the minimum is 10.6 (expected: 8.4)
     27Parameter 4 at the minimum is 1.3 (expected: 10.4)
    2828The LMM minimization tests PASSED.
    2929DONE
  • trunk/psLib/test/math/verified/tst_psMinimizePowell.stdout

    r6280 r6332  
    77
    88The minimum is 20.000000 (expected: 20.000000)
    9 Parameter 0 at the minimum is 2.307660 (expected: 2.320000)
     9Parameter 0 at the minimum is 2.3 (expected: 2.3)
    1010Parameter 0: (2.3), expected was (2.3)
    11 Parameter 1 at the minimum is 4.310108 (expected: 4.320000)
     11Parameter 1 at the minimum is 4.3 (expected: 4.3)
    1212Parameter 1: (4.3), expected was (4.3)
    13 Parameter 2 at the minimum is 6.305460 (expected: 6.320000)
     13Parameter 2 at the minimum is 6.3 (expected: 6.3)
    1414Parameter 2: (6.3), expected was (6.3)
    15 Parameter 3 at the minimum is 8.309398 (expected: 8.320000)
     15Parameter 3 at the minimum is 8.3 (expected: 8.3)
    1616Parameter 3: (8.3), expected was (8.3)
    17 Parameter 4 at the minimum is 10.311120 (expected: 10.320000)
     17Parameter 4 at the minimum is 10.3 (expected: 10.3)
    1818Parameter 4: (10.3), expected was (10.3)
    19 Parameter 5 at the minimum is 12.309612 (expected: 12.320000)
     19Parameter 5 at the minimum is 12.3 (expected: 12.3)
    2020Parameter 5: (12.3), expected was (12.3)
    21 Parameter 6 at the minimum is 14.320016 (expected: 14.320000)
     21Parameter 6 at the minimum is 14.3 (expected: 14.3)
    2222Parameter 6: (14.3), expected was (14.3)
    23 Parameter 7 at the minimum is 16.318933 (expected: 16.320000)
     23Parameter 7 at the minimum is 16.3 (expected: 16.3)
    2424Parameter 7: (16.3), expected was (16.3)
    25 Parameter 8 at the minimum is 18.323397 (expected: 18.320000)
     25Parameter 8 at the minimum is 18.3 (expected: 18.3)
    2626Parameter 8: (18.3), expected was (18.3)
    27 Parameter 9 at the minimum is 20.314043 (expected: 20.320000)
     27Parameter 9 at the minimum is 20.3 (expected: 20.3)
    2828Parameter 9: (20.3), expected was (20.3)
    2929
     
    3838
    3939The minimum is 20.000000 (expected: 20.000000)
    40 Parameter 0 at the minimum is 2.307660 (expected: 2.320000)
     40Parameter 0 at the minimum is 2.3 (expected: 2.3)
    4141Parameter 0: (2.3), expected was (2.3)
    42 Parameter 1 at the minimum is 4.310108 (expected: 4.320000)
     42Parameter 1 at the minimum is 4.3 (expected: 4.3)
    4343Parameter 1: (4.3), expected was (4.3)
    44 Parameter 2 at the minimum is 6.305460 (expected: 6.320000)
     44Parameter 2 at the minimum is 6.3 (expected: 6.3)
    4545Parameter 2: (6.3), expected was (6.3)
    46 Parameter 3 at the minimum is 8.309398 (expected: 8.320000)
     46Parameter 3 at the minimum is 8.3 (expected: 8.3)
    4747Parameter 3: (8.3), expected was (8.3)
    48 Parameter 4 at the minimum is 10.311120 (expected: 10.320000)
     48Parameter 4 at the minimum is 10.3 (expected: 10.3)
    4949Parameter 4: (10.3), expected was (10.3)
    50 Parameter 5 at the minimum is 12.309612 (expected: 12.320000)
     50Parameter 5 at the minimum is 12.3 (expected: 12.3)
    5151Parameter 5: (12.3), expected was (12.3)
    52 Parameter 6 at the minimum is 14.320016 (expected: 14.320000)
     52Parameter 6 at the minimum is 14.3 (expected: 14.3)
    5353Parameter 6: (14.3), expected was (14.3)
    54 Parameter 7 at the minimum is 16.318933 (expected: 16.320000)
     54Parameter 7 at the minimum is 16.3 (expected: 16.3)
    5555Parameter 7: (16.3), expected was (16.3)
    56 Parameter 8 at the minimum is 18.323397 (expected: 18.320000)
     56Parameter 8 at the minimum is 18.3 (expected: 18.3)
    5757Parameter 8: (18.3), expected was (18.3)
    58 Parameter 9 at the minimum is 20.314043 (expected: 20.320000)
     58Parameter 9 at the minimum is 20.3 (expected: 20.3)
    5959Parameter 9: (20.3), expected was (20.3)
    6060
Note: See TracChangeset for help on using the changeset viewer.