BAIT: stat command

NAME

stat - computes mean and standard deviation from stdin

SYNOPSIS

stat [xc=] [file] [median]

DESCRIPTION

stat reads data from stdin or the file specified on the command line and calculates the mean and standard deviation of the data values in the first column. Data can be selected from other columns using the xc= switch When done, the program prints out a line like:

5 2.000 1.414214

Where the first field is the number of points fitted, the second is the mean and the third is the standard deviation of the input data from the mean value. If only one data point is entered, the standard deviation is set to 0.

The median option causes the median to be printed out rather than the average.

Input records starting with the # sign are ignored.