libsim  Versione7.2.3
Elenco di tutti i membri
Riferimenti per l'nterfacciastat_variance

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

Descrizione dettagliata

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

The average can be returned as an optional parameter since it is computed anyway. The result is of type REAL or DOUBLE PRECISION according to the type of sample.

REAL or DOUBLE PRECISION FUNCTION stat_variance()

Parametri
sample(:)REAL,INTENT(in) or DOUBLE PRECISION,INTENT(in) the variable for which variance has to be computed
averageREAL,OPTIONAL,INTENT(out) or DOUBLE PRECISION,OPTIONAL,INTENT(out) the average of the variable can optionally be returned
mask(:)LOGICAL,OPTIONAL,INTENT(in) additional mask to be and'ed with missing values
nomissLOGICAL,OPTIONAL,INTENT(in) if provided and .TRUE. it disables all the checks for missing data and empty sample and enables the use of a fast algorithm
nm1LOGICAL,OPTIONAL,INTENT(in) if provided and .TRUE. it computes the variance dividing by n - 1 rather than by n

Definizione alla linea 54 del file simple_stat.f90.


Generated with Doxygen.