C Library Functions  - hist (3)

NAME

hist(3f) - [M_datapac:STATISTICS] generates histograms based on two different class widths

CONTENTS

Synopsis
Description
Input Arguments
Output
Examples
Author
Maintainer
License
References

SYNOPSIS

SUBROUTINE HIST(X,N)

       REAL(kind=wp),intent(in) :: X(:)
       INTEGER,intent(in)       :: N

DESCRIPTION

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.

INPUT ARGUMENTS

X The vector of (unsorted or sorted) observations.
N The integer number of observations in the vector X.

OUTPUT

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.

EXAMPLES

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_hist

Results:

AUTHOR

The original DATAPAC library was written by James Filliben of the Statistical Engineering Division, National Institute of Standards and Technology.

MAINTAINER

John Urban, 2022.05.31

LICENSE

CC0-1.0

REFERENCES

o Kendall and Stuart, The Advanced Theory of Statistics, Volume 1, Edition 2, 1963, page 4.


Nemo Release 3.1 hist (3) July 22, 2023
Generated by manServer 1.08 from 4273c60b-5398-47d6-afd4-68d938e85c96 using man macros.