Interactive calculation of weighted means
Description:
-
The program calculates the weighted mean of sets of data typed at the
terminal
Input:
-
Data are read interactively from the terminal
Output:
-
A listing file which contains the input data and the results of all the
calculations
Notes:
-
If the esd's of the data are not known they can be given as 1 to give unit
weights.
Running the program:
-
On running the program the user is asked successively to give x and dx
which are the value and esd of one of a set of observations whose mean is
required. If a RETURN rather than a value is typed the weighted mean of the
current set is calculated and printed on the terminal, followed by the
esd's calculated first from the deviations from the mean, and secondly
from the given esd's of the data.
A RETURN typed when there are no data in the set terminates the program.
Calls:
- ASK
INITIL
RDNUMS
WTMEAN
Common blocks used:
-
- /IOUNIT/ to use LPT ITO
*** MEANWT by PJB ***
Classification:
Mathematical Functions . . . . . . . Main Program
P. Jane Brown
Institut Laue Langevin,
Grenoble, FRANCE