NAME stats - print statistical measures SYNOPSIS stats [ -{option} ] option -> t | a | m | s | v | h | l | r | q | n | % DESCRIPTION 'Stats' is a filter that can be used to generate various statistical measures of a set of floating point data. Input to 'stats' is a list of numbers, appearing one per line but free-form within each line, on its first standard input. Output from 'stats' is a list of statistics, preceded by labels (unless the "-q" option has been specified) on the first standard output. The options control the statistics to be printed. Those presently available are: t Print the sum (total) of all data values. a Print the arithmetic mean (average) of the data values. m Print the mode (most frequently occuring value). s Print the standard deviation of the population sampled. v Print the variance of the population sampled. h Print the highest value in the sample. l Print the lowest value in the sample. r Print the range of values in the sample (highest - lowest). q Quiet; turn off the printing of labels on the output. n Print the number of data values in the sample. % Print percentile ranks for the data. The percent sign (%) must be followed by the percentile increment to be used for the ranking. Note that "-%50" yields the median value for the sample. The default options are currently "-as%50". EXAMPLES grades> stats grades> stats -ahl%25 {tc -l ([files .r])} | stats -tahl lf -cw | field 1-8 | stats -tq MESSAGES "Usage..." for improper options. BUGS Restricted to small data sets because of an internal sort which is not really necessary for any statistic other than the percentile ranking.