next up previous contents index
Next: Operations on Histograms Up: Accessing Information Previous: Histogram definition

Statistics

 

HSTATIVARIAB = HSTATI (ID,ICASE,CHOICE,NUM)

Action:           This function of type REAL returns the mean value, standard deviation or number of equivalent events of a 1-dimensional distribution. Underflows and overflows are not included in the calculation.

Input parameters:
ID
Histogram identifier
ICASE
1 Mean value
2 Standard deviation
3 Number of equivalent events
CHOICE
See HUNPAK
NUM
See HUNPAK
If HIDOPT(ID,'STAT')STAT has been called, the results are based on the information stored at filling time. Otherwise the results are based on the channel contents only. If xi and wi represent the value and contents of event i, then one has the following relations:


Last update: Tue May 16 09:09:27 METDST 1995