IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15840


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

Adding psStatsMeanOption and psStatsStdevOption

Location:
trunk/psLib/src/math
Files:
2 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)
  • trunk/psLib/src/math/psStats.h

    r14931 r15840  
    88 * @author GLG, MHPCC
    99 *
    10  * @version $Revision: 1.63 $ $Name: not supported by cvs2svn $
    11  * @date $Date: 2007-09-20 23:59:03 $
     10 * @version $Revision: 1.64 $ $Name: not supported by cvs2svn $
     11 * @date $Date: 2007-12-15 01:17:28 $
    1212 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1313 */
     
    146146// Return a particular stats value
    147147double psStatsGetValue(const psStats *stats, psStatsOptions option);
     148// Return the statistics option(s) for the mean/median
     149psStatsOptions psStatsMeanOption(psStatsOptions options);
     150// Return the statistics option(s) for the stdev
     151psStatsOptions psStatsStdevOption(psStatsOptions options);
    148152
    149153/// @}
Note: See TracChangeset for help on using the changeset viewer.