DOC STAT - Get Statistics from column in Document file

(11/22/10)

PURPOSE

Computes minimum, maximum, sum, average, and standard deviation from chosen column of document file.

SEE ALSO

DOC CREATE [Create Document file]

USAGE

.OPERATION: DOC STAT
  <or>
DOC STAT [nval],[min],[max],[sum],[col-avg],[col-std]
[This operation takes up to 6 optional register variables. On completion of operation, if variables are present,
First variable receives: Number of values in col.
Second variable receives: Minimum value in col.
Third variable receives: Maximum value in col.
Fourth variable receives: Sum of values in col.
Fifth variable receives: Average of values in col.
Sixth variable receives: Standard deviation of values in col. (Deviation is obtained from number of values -1.)]

.INPUT DOCUMENT FILE: DOC002
[Enter name of input document file.]

.COLUMN TO BE ANALYZED (0 IS KEY): 1
[Enter column number to be analyzed. There is an error if this column does not exist anywhere in the document file. If the requested column is not present in a line from the file, then that line is ignored.

NOTES

  1. These statistical parameters will also be listed in the results file.

SUBROUTINES

DOCS1, OPENDOC, LUNDOC

CALLER

DRIV1

© Copyright Notice /       Enquiries: spider@wadsworth.org