IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 23, 2006, 12:25:31 PM (20 years ago)
Author:
gusciora
Message:

Misc code cleaning

File:
1 edited

Legend:

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

    r6185 r6186  
    1717 *
    1818 *
    19  *  @version $Revision: 1.159 $ $Name: not supported by cvs2svn $
    20  *  @date $Date: 2006-01-23 20:44:29 $
     19 *  @version $Revision: 1.160 $ $Name: not supported by cvs2svn $
     20 *  @date $Date: 2006-01-23 22:25:31 $
    2121 *
    2222 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    23172317    psTrace(__func__, 5, "(lower, upper, n) is (%f, %f, %d)\n", lower, upper, n);
    23182318    PS_ASSERT_INT_POSITIVE(n, NULL);
    2319     PS_FLOAT_COMPARE(lower, upper, NULL);
     2319    PS_ASSERT_FLOAT_LARGER_THAN_OR_EQUAL(upper, lower, NULL);
    23202320
    23212321    psS32 i = 0;                  // Loop index variable
     
    23692369    PS_ASSERT_VECTOR_NON_NULL(bounds, NULL);
    23702370    PS_ASSERT_VECTOR_TYPE(bounds, PS_TYPE_F32, NULL);
    2371     PS_INT_COMPARE(2, bounds->n, NULL);
     2371    PS_ASSERT_INT_LARGER_THAN_OR_EQUAL(bounds->n, 2, NULL);
    23722372
    23732373    psHistogram* newHist = NULL;        // The new histogram structure
     
    24372437    PS_ASSERT_PTR_NON_NULL(out->nums, -1);
    24382438    PS_ASSERT_INT_WITHIN_RANGE(binNum, 0, ((out->nums->n)-1), -2);
    2439     PS_FLOAT_COMPARE(0.0, error, -3);
     2439    PS_ASSERT_FLOAT_LARGER_THAN_OR_EQUAL(error, 0.0, -3);
     2440
    24402441    PS_ASSERT_FLOAT_WITHIN_RANGE(data, out->bounds->data.F32[0], out->bounds->data.F32[(out->bounds->n)-1], -4);
    24412442
     
    27562757
    27572758    if ((stats->options & PS_STAT_USE_RANGE) && (stats->min >= stats->max)) {
    2758         PS_FLOAT_COMPARE(stats->min, stats->max, stats);
     2759        PS_ASSERT_FLOAT_LARGER_THAN_OR_EQUAL(stats->max, stats->min, stats);
    27592760    }
    27602761
Note: See TracChangeset for help on using the changeset viewer.