Changeset 4530 for trunk/doc/pslib/psLibSDRS.tex
- Timestamp:
- Jul 11, 2005, 9:17:38 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r4458 r4530 1 %%% $Id: psLibSDRS.tex,v 1.31 1 2005-07-06 03:39:01 price Exp $1 %%% $Id: psLibSDRS.tex,v 1.312 2005-07-11 19:17:38 eugene Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 1434 1434 unsigned int lineno, 1435 1435 const char *func, 1436 psErrorCode code,1436 psErrorCode code, 1437 1437 bool new, 1438 const char *format, ...);1438 const char *format, ...); 1439 1439 \end{prototype} 1440 1440 \begin{datatype} … … 3987 3987 We require a very general statistics function, which, given a vector 3988 3988 of floating-point values, will be able to calculate the following 3989 statistics:3989 population statistics: 3990 3990 \begin{itemize} 3991 \item Minimum value; 3992 \item Maximum value; 3991 3993 \item Sample mean; 3992 3994 \item Sample median; 3993 3995 \item Sample standard deviation; 3994 3996 \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; 3996 3999 \item Robust median and number of values used to calculate; 3997 \item Robust mode and number of values used to calculate;3998 4000 \item Robust standard deviation; 3999 4001 \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; 4003 4004 \end{itemize} 4004 4005 4005 4006 For definitions of each of these, see the accompanying Algorithms 4006 4007 Definition 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 4008 entire vector, ``clipped'' refers to clipping the distribution, 4009 ``robust'' refers to determining the quantities from the cumulative 4010 histogram, and ``fitted'' refers to fitting the data histogram with a 4011 Gaussian model. Each of these must be available from a single 4010 4012 function: 4011 4013 … … 4015 4017 const psVector *errors, 4016 4018 const psVector *mask, 4017 psMaskType maskVal 4018 ); 4019 psMaskType maskVal); 4019 4020 \end{prototype} 4020 4021 % … … 4024 4025 and a \code{psStats} structure, which will be altered and returned. 4025 4026 The \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. 4027 for both input and output: \code{nSubsample} (default value of 4028 100,000) specifies the maximum number of data points to be used for 4029 the statistics calculation. If more points than this are available, 4030 then the input vector must be randomly sampled to provide 4031 \code{nSubsample} measurements. \code{min} and \code{max} may be used 4032 to specify a value range for which the statistics are calculated. 4028 4033 \code{binsize} specifies a choice for the robust statistics histogram 4029 4034 bin size. If these are to be used, the user must set the … … 4050 4055 4051 4056 \begin{datatype} 4052 /** generic statistics structure */4053 4057 typedef struct { 4054 4058 double sampleMean; ///< formal mean of sample … … 4057 4061 double sampleUQ; ///< upper quartile of sample 4058 4062 double sampleLQ; ///< lower quartile of sample 4059 double robustMean; ///< robust mean of data4060 4063 double robustMedian; ///< robust median of data 4061 double robustMode; ///< Robust mode of data4062 4064 double robustStdev; ///< robust standard deviation of data 4063 4065 double robustUQ; ///< robust upper quartile 4064 4066 double robustLQ; ///< robust lower quartile 4065 4067 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 4067 4071 double clippedMean; ///< Nsigma clipped mean 4068 4072 double clippedStdev; ///< standard deviation after clipping … … 4073 4077 double max; ///< maximum data value in data; input range 4074 4078 double binsize; ///< binsize for robust fit (input/output) 4079 int nSubsample; ///< maximum number of measuremenst (input) 4075 4080 psStatsOptions options; ///< bitmask of calculated values 4076 4081 } psStats; … … 4080 4085 4081 4086 \begin{datatype} 4082 /** statistics which may be calculated */4083 4087 typedef enum { 4084 4088 PS_STAT_SAMPLE_MEAN = 0x000001, … … 4086 4090 PS_STAT_SAMPLE_STDEV = 0x000004, 4087 4091 PS_STAT_SAMPLE_QUARTILE = 0x000008, 4088 PS_STAT_ROBUST_ME AN= 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, 4093 4097 PS_STAT_CLIPPED_MEAN = 0x000200, 4094 4098 PS_STAT_CLIPPED_STDEV = 0x000400, … … 6362 6366 corrections for the short-period motion of the Earth's pole. 6363 6367 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 6364 6375 \subsubsection{Transformation from ICRS to GCRS} 6365 6376
Note:
See TracChangeset
for help on using the changeset viewer.
