libsim  Versione7.2.1
Elenco di tutti i membri
Riferimenti per l'nterfacciastat_mode_histogram

Compute the mode of the random variable provided taking into account missing data. Continua...

Descrizione dettagliata

Compute the mode of the random variable provided taking into account missing data.

The mode is computed by binning the sample into the requested number of intervals (bins) and the mode is computed as the midpoint of the most populated bin; in case of multi-modality, the smallest value is returned. If the operation cannot be performed a missing value is returned. See the description of simple_stat::stat_bin subroutine for details about the binning procedure.

REAL or DOUBLE PRECISION FUNCTION stat_mode_histogram()

Parametri
sample(:)REAL or DOUBLE PRECISION,INTENT(in) the variable for which the mode has to be computed
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

Definizione alla linea 160 del file simple_stat.f90.


Generated with Doxygen.