hist(3f) - [M_datapac:STATISTICS] generates histograms based on two different class widths
Synopsis
Description
Input Arguments
Output
Examples
Author
Maintainer
License
References
SUBROUTINE HIST(X,N)
REAL(kind=wp),intent(in) :: X(:) INTEGER,intent(in) :: N
HIST(3f) produces 2 histograms (with differing class widths) of the data in the input vector X.The first histogram has class width = 0.1 sample standard deviations; the second histogram has class width = 0.2 sample standard deviations.
Two histograms of the same data set are printed out so as to give the data analyst some feel for how dependent the histogram shape is as a function of the class width and number of classes.
X The vector of (unsorted or sorted) observations. N The integer number of observations in the vector X.
One page of automatic printout consisting of 2 half-page histograms (with class widths = 0.1 and 0.2 sample standard deviations, respectively) of the data in the input vector X.
Sample program:
program demo_hist use M_datapac, only : hist implicit none real,allocatable :: x(:) integer :: i integer :: n x=[(real(i),i=1,100)] n=size(x) call hist(x,n) end program demo_histResults:
The original DATAPAC library was written by James Filliben of the Statistical Engineering Division, National Institute of Standards and Technology.
John Urban, 2022.05.31
CC0-1.0
o Kendall and Stuart, The Advanced Theory of Statistics, Volume 1, Edition 2, 1963, page 4.
Nemo Release 3.1 | hist (3) | February 23, 2025 |