IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 27, 2006, 2:44:05 PM (20 years ago)
Author:
Paul Price
Message:

Replacing p_psGetStatValue with two functions: psStatsSingleOption returns the single option that is set, or 0 if no matching option is set; psStatsGetValue returns the value for a requested statistic. Tests seem to pass with the new code.

File:
1 edited

Legend:

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

    r7991 r7999  
    1414 *  @author GLG, MHPCC
    1515 *
    16  *  @version $Revision: 1.54 $ $Name: not supported by cvs2svn $
    17  *  @date $Date: 2006-07-27 03:51:13 $
     16 *  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
     17 *  @date $Date: 2006-07-28 00:44:05 $
    1818 *
    1919 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    190190);
    191191
    192 /** Extracts the statistic value specified by stats->options.
    193  *
    194  *  @return psBool    If more than one statistic result is set in stats->options,
    195  *                    false is returned and the value parameter is not set,
    196  *                    otherwise true is returned.
    197  */
    198 psBool p_psGetStatValue(
    199     const psStats* stats, ///< the statistic struct to operate on
    200 
    201     psF64 *value ///< if return is true, this is set to the specified statistic value by stats->options
    202 );
    203 
    204192
    205193// Get the statistics option from a string
     
    211199// Generate a string of statistics options from a psStats
    212200psString psStatsToString(const psStats *stats);
    213 
     201// Is only a single statistics option set?
     202inline psStatsOptions psStatsSingleOption(psStatsOptions option);
     203// Return a particular stats value
     204inline double psStatsGetValue(const psStats *stats, psStatsOptions option);
    214205
    215206/// @}
Note: See TracChangeset for help on using the changeset viewer.