C Library Functions - min (3)
NAME
min(3f) - [M_datapac:STATISTICS] compute the minimum of a data vector
CONTENTS
Synopsis
Description
Input Arguments
Output Arguments
Examples
Author
Maintainer
License
References
SYNOPSIS
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
DESCRIPTION
MIN(3f) computes the sample minimum of the data in the input vector X.
INPUT ARGUMENTS
|
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.
|
|
OUTPUT ARGUMENTS
|
XMIN |
The value of the computed sample minimum.
|
|
EXAMPLES
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
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
|
David, Order Statistics, 1970, page 7.
|
|
| Nemo Release 3.1 | min (3) | June 29, 2025 |
Generated by manServer 1.08 from 3d0a1ccf-1366-42fe-ac1d-955d6ade65cc using man macros.