IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 26, 2006, 5:52:15 PM (20 years ago)
Author:
Paul Price
Message:

Adding psStatsOptionFromString and psStatsOptionToString.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibSDRS.tex

    r7990 r7991  
    1 %%% $Id: psLibSDRS.tex,v 1.423 2006-07-26 22:10:38 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.424 2006-07-27 03:52:15 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    47914791so we specify functions to convert between strings and \code{psStats}:
    47924792\begin{prototype}
     4793psStatsOptions psStatsOptionFromString(const char *string);
     4794psString psStatsOptionToString(psStatsOptions option);
    47934795psStats *psStatsFromString(const char *string);
    47944796psString psStatsToString(const psStats *stats);
    47954797\end{prototype}
     4798\code{psStatsOptionFromString} shall parse the \code{string} for a
     4799single statistics option.  The options shall be specified by their
     4800\code{psStatsOptions} enum name, without the leading \code{PS_STAT_}.
     4801In addition, \code{SAMPLE_} may be excluded for the user's
     4802convenience, and \code{ROBUST} shall refer to a \code{ROBUST_MEDIAN},
     4803\code{FITTED} to a \code{FITTED_MEAN}, and \code{CLIPPED} to a
     4804\code{CLIPPED_MEAN}.  \code{psStatsOptionToString} shall translate in
     4805the reverse direction, returning the appropriate string given the
     4806\code{option} (which may be a blend of options).
    47964807\code{psStatsFromString} shall parse the input \code{string} for
    4797 statistics options.  Multiple options may be included in the same
    4798 string, separated by spaces, commas or semi-colons.  The options shall
    4799 be specified by their \code{psStatsOptions} enum, without the leading
    4800 \code{PS_STAT_}.  In addition, \code{SAMPLE_} may be excluded for the
    4801 user's convenience, and \code{ROBUST} shall refer to a
    4802 \code{ROBUST_MEDIAN}, \code{FITTED} to a \code{FITTED_MEAN}, and
    4803 \code{CLIPPED} to a \code{CLIPPED_MEAN}.  \code{psStatsToString} shall
    4804 translate in the reverse direction.
     4808statistics options, where multiple options may be included in the same
     4809string, separated by spaces, commas or semi-colons.
     4810\code{psStatsToString} shall translate in the reverse direction.
    48054811
    48064812\begin{prototype}
Note: See TracChangeset for help on using the changeset viewer.