discre(3f) - [M_datapac:STATISTICS] bin the elements of a vector (like DISCR2, but allows specification of min and max class limits)
Synopsis
Description
Options
Examples
Author
Maintainer
License
SUBROUTINE DISCRE(X,N,Xmin,Xdel,Xmax,Y)
discre(3f) discretizes the data of the REAL vector x. the first class interval is from xmin to xmin + xdel; the second class interval is from xmin+ xdel to xmin + 2*xdel; etc.all values in the vector x within a given class will be mapped into the midpoint of that class.
all values in the vector x smaller than xmin will be mapped into xmin - (xdel/2.0).
all values in the vector x larger than xmax will be mapped into xmax + (xdel/2.0).
the use of discre(3f) (and the discr2 and discr3 subroutines) gives the data analyst the capability of constructing a discrete variate from a continuous one.
the resulting discrete variate might then (for example) be analyzed in itself for gross structure, or for adherence to some theoretical discrete probability model, or the discrete variate might be used as a subset definition vector for some other variate.
X description of parameter Y description of parameter
Sample program:
program demo_discre use M_datapac, only : discre implicit none ! call discre(x,y) end program demo_discreResults:
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
Nemo Release 3.1 | discre (3) | February 23, 2025 |