min(3f) - [M_datapac:STATISTICS] compute the minimum of a data vector
Synopsis
Description
Input Arguments
Output Arguments
Examples
Author
Maintainer
License
References
SUBROUTINE MIN(X,N,Iwrite,Xmin)
real(kind=wp),intent(in) :: X(:) integer,intent(in) :: N integer,intent(in) :: Iwrite real(kind=wp),intent(out) :: Xmin
MIN(3f) computes the sample minimum of the data in the input vector X.
X The vector of (unsorted or sorted) observations. N The integer number of observations in the vector X. IWRITE An integer flag code which (if set to 0) will suppress The printing of the sample minimum as it is computed; or (if set to some integer value not equal to 0; like, say, 1) will cause The printing of the sample minimum at the time it is computed.
XMIN The value of the computed sample minimum.
Sample program:
program demo_min use M_datapac, only : min, label implicit none real :: xmin call label(min) call min([-100.0, 200.0, 0.0, 400.0, -200.0],5,1,xmin) write(*,*)xmin end program demo_min
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 David, Order Statistics, 1970, page 7.
Nemo Release 3.1 | min (3) | February 23, 2025 |