IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 11, 2005, 9:17:38 AM (21 years ago)
Author:
eugene
Message:

updated robust stats

File:
1 edited

Legend:

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

    r4458 r4530  
    1 %%% $Id: psLibSDRS.tex,v 1.311 2005-07-06 03:39:01 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.312 2005-07-11 19:17:38 eugene Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    14341434                      unsigned int lineno,
    14351435                      const char *func,
    1436                       psErrorCode code,
     1436                      psErrorCode code,
    14371437                      bool new,
    1438                       const char *format, ...);
     1438                      const char *format, ...);
    14391439\end{prototype}
    14401440\begin{datatype}
     
    39873987We require a very general statistics function, which, given a vector
    39883988of floating-point values, will be able to calculate the following
    3989 statistics:
     3989population statistics:
    39903990\begin{itemize}
     3991\item Minimum value;
     3992\item Maximum value;
    39913993\item Sample mean;
    39923994\item Sample median;
    39933995\item Sample standard deviation;
    39943996\item Sample upper and lower quartiles;
    3995 \item Robust mean and number of values used to calculate;
     3997\item Clipped mean and number of values used to calculate;
     3998\item Clipped standard deviation;
    39963999\item Robust median and number of values used to calculate;
    3997 \item Robust mode and number of values used to calculate;
    39984000\item Robust standard deviation;
    39994001\item Robust upper and lower quartiles;
    4000 \item Clipped mean and number of values used to calculate;
    4001 \item Clipped standard deviation; and
    4002 \item Minimum and maximum value in vector.
     4002\item Fitted mean and number of values used to calculate;
     4003\item Fitted standard deviation;
    40034004\end{itemize}
    40044005
    40054006For definitions of each of these, see the accompanying Algorithms
    40064007Definition Document (ADD), but in general, ``sample'' refers to the
    4007 entire vector, ``robust'' refers to fitting the distribution in the
    4008 vector with a model, and ``clipped'' refers to clipping the
    4009 distribution.  Each of these must be available from a single
     4008entire vector, ``clipped'' refers to clipping the distribution,
     4009``robust'' refers to determining the quantities from the cumulative
     4010histogram, and ``fitted'' refers to fitting the data histogram with a
     4011Gaussian model.  Each of these must be available from a single
    40104012function:
    40114013
     
    40154017                       const psVector *errors,
    40164018                       const psVector *mask,
    4017                        psMaskType maskVal
    4018                        );
     4019                       psMaskType maskVal);
    40194020\end{prototype}
    40204021%
     
    40244025and a \code{psStats} structure, which will be altered and returned.
    40254026The \code{psStats} structure includes several fields which are used
    4026 for both input and output: \code{min} and \code{max} may be used to
    4027 specify a value range for which the statistics are calculated.
     4027for both input and output: \code{nSubsample} (default value of
     4028100,000) specifies the maximum number of data points to be used for
     4029the statistics calculation.  If more points than this are available,
     4030then the input vector must be randomly sampled to provide
     4031\code{nSubsample} measurements.  \code{min} and \code{max} may be used
     4032to specify a value range for which the statistics are calculated.
    40284033\code{binsize} specifies a choice for the robust statistics histogram
    40294034bin size.  If these are to be used, the user must set the
     
    40504055
    40514056\begin{datatype}
    4052 /** generic statistics structure */
    40534057typedef struct {
    40544058    double sampleMean;                  ///< formal mean of sample
     
    40574061    double sampleUQ;                    ///< upper quartile of sample
    40584062    double sampleLQ;                    ///< lower quartile of sample
    4059     double robustMean;                  ///< robust mean of data
    40604063    double robustMedian;                ///< robust median of data
    4061     double robustMode;                  ///< Robust mode of data
    40624064    double robustStdev;                 ///< robust standard deviation of data
    40634065    double robustUQ;                    ///< robust upper quartile
    40644066    double robustLQ;                    ///< robust lower quartile
    40654067    int    robustN50;                   ///< Number of points UQ-LQ
    4066     int    robustNfit;                  ///< Number of points in Gauss. fit
     4068    double fittedMean;                  ///< robust mean of data
     4069    double fittedStdev;                 ///< robust standard deviation of data
     4070    int    fittedNfit;                  ///< Number of points in Gauss. fit
    40674071    double clippedMean;                 ///< Nsigma clipped mean
    40684072    double clippedStdev;                ///< standard deviation after clipping
     
    40734077    double max;                         ///< maximum data value in data; input range
    40744078    double binsize;                     ///< binsize for robust fit (input/output)
     4079    int    nSubsample;                  ///< maximum number of measuremenst (input)
    40754080    psStatsOptions options;             ///< bitmask of calculated values
    40764081} psStats;
     
    40804085
    40814086\begin{datatype}
    4082 /** statistics which may be calculated */
    40834087typedef enum {
    40844088    PS_STAT_SAMPLE_MEAN           = 0x000001,
     
    40864090    PS_STAT_SAMPLE_STDEV          = 0x000004,
    40874091    PS_STAT_SAMPLE_QUARTILE       = 0x000008,
    4088     PS_STAT_ROBUST_MEAN           = 0x000010,
    4089     PS_STAT_ROBUST_MEDIAN         = 0x000020,
    4090     PS_STAT_ROBUST_MODE           = 0x000040,
    4091     PS_STAT_ROBUST_STDEV          = 0x000080,
    4092     PS_STAT_ROBUST_QUARTILE       = 0x000100,
     4092    PS_STAT_ROBUST_MEDIAN         = 0x000010,
     4093    PS_STAT_ROBUST_STDEV          = 0x000020,
     4094    PS_STAT_ROBUST_QUARTILE       = 0x000040,
     4095    PS_STAT_FITTED_MEAN           = 0x000080,
     4096    PS_STAT_FITTED_STDEV          = 0x000100,
    40934097    PS_STAT_CLIPPED_MEAN          = 0x000200,
    40944098    PS_STAT_CLIPPED_STDEV         = 0x000400,
     
    63626366corrections for the short-period motion of the Earth's pole. 
    63636367
     6368\begin{figure}
     6369\begin{center}
     6370\psfig{file=earthrot.ps,height=4in}
     6371\caption{Earth Orientation Coordinate Frames\label{CoordinateSystems}}
     6372\end{center}
     6373\end{figure}
     6374
    63646375\subsubsection{Transformation from ICRS to GCRS}
    63656376
Note: See TracChangeset for help on using the changeset viewer.