libsim Versione 7.2.4
|
Bin a sample into equally spaced intervals to form a histogram. Continua...
Bin a sample into equally spaced intervals to form a histogram.
The sample is binned into the requested number of intervals (bins) and the population of each bin is returned in the allocatable array bin(:). If the operation cannot be performed bin is not allocated. If the lower and upper bound of the histogram are not provided, they are computed as the minimum and maximum of the sample.
SUBROUTINE stat_bin()
sample(:) | REAL or DOUBLE PRECISION,INTENT(in) the variable to be binned |
bin(:) | INTEGER,INTENT(out),ALLOCATABLE the array with the population of each bin, dimensioned as (nbin) |
nbin | INTEGER,INTENT(in) the number of bins requested |
start | REAL or DOUBLE PRECISION,INTENT(in),OPTIONAL the start of the overall histogram interval |
finish | REAL or DOUBLE PRECISION,INTENT(in),OPTIONAL the end of the overall histogram interval |
mask(:) | LOGICAL,OPTIONAL,INTENT(in) additional mask to be and'ed with missing values |
binbounds(:) | REAL or DOUBLE PRECISION,INTENT(out),ALLOCATABLE,OPTIONAL the boundary of each bin, dimensioned as (nbin+1) |
Definizione alla linea 141 del file simple_stat.f90.