C Library Functions  - discre (3)

NAME

discre(3f) - [M_datapac:STATISTICS] bin the elements of a vector (like DISCR2, but allows specification of min and max class limits)

CONTENTS

Synopsis
Description
Options
Examples
Author
Maintainer
License

SYNOPSIS

SUBROUTINE DISCRE(X,N,Xmin,Xdel,Xmax,Y)

DESCRIPTION

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.

OPTIONS

X description of parameter
Y description of parameter

EXAMPLES

Sample program:

   program demo_discre
   use M_datapac, only : discre
   implicit none
   ! call discre(x,y)
   end program demo_discre

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


Nemo Release 3.1 discre (3) July 22, 2023
Generated by manServer 1.08 from eefc9b7d-4eba-43b8-96a0-35e7465379a5 using man macros.