libsim  Versione 7.2.6
Elenco di tutti i membri
Riferimenti per l'nterfacciastat_bin

Bin a sample into equally spaced intervals to form a histogram. Continua...

Descrizione dettagliata

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()

Parametri
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)
nbinINTEGER,INTENT(in) the number of bins requested
startREAL or DOUBLE PRECISION,INTENT(in),OPTIONAL the start of the overall histogram interval
finishREAL 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.


Generated with Doxygen.