IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 14, 2007, 3:17:28 PM (19 years ago)
Author:
Paul Price
Message:

Adding psStatsMeanOption and psStatsStdevOption

File:
1 edited

Legend:

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

    r15407 r15840  
    1313 * use ->min and ->max (PS_STAT_USE_RANGE)
    1414 *
    15  *  @version $Revision: 1.220 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2007-10-29 20:36:28 $
     15 *  @version $Revision: 1.221 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2007-12-15 01:17:28 $
    1717 *
    1818 *  Copyright 2006 IfA, University of Hawaii
     
    24942494    return 0;
    24952495}
     2496
     2497psStatsOptions psStatsMeanOption(psStatsOptions options)
     2498{
     2499    return options & (PS_STAT_SAMPLE_MEAN | PS_STAT_SAMPLE_MEDIAN | PS_STAT_ROBUST_MEDIAN |
     2500                      PS_STAT_CLIPPED_MEAN | PS_STAT_FITTED_MEAN | PS_STAT_FITTED_MEAN_V2 |
     2501                      PS_STAT_FITTED_MEAN_V3 | PS_STAT_FITTED_MEAN_V4);
     2502}
     2503
     2504psStatsOptions psStatsStdevOption(psStatsOptions options)
     2505{
     2506    return options & (PS_STAT_SAMPLE_STDEV | PS_STAT_ROBUST_STDEV | PS_STAT_CLIPPED_STDEV |
     2507                      PS_STAT_FITTED_STDEV | PS_STAT_FITTED_STDEV_V2 | PS_STAT_FITTED_STDEV_V3 |
     2508                      PS_STAT_FITTED_STDEV_V4);
     2509}
     2510
    24962511
    24972512double psStatsGetValue(const psStats *stats, psStatsOptions option)
Note: See TracChangeset for help on using the changeset viewer.