libsim
Versione 7.1.8
|
Compute the standard deviation of the random variable provided, taking into account missing data. Continua...
Compute the standard deviation 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_stddev()
sample(:) | REAL,INTENT(in) or DOUBLE PRECISION,INTENT(in) the variable for which standard deviation has to be computed |
average | REAL,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 |
nomiss | LOGICAL,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 |
nm1 | LOGICAL,OPTIONAL,INTENT(in) if provided and .TRUE. it computes the variance dividing by n - 1 rather than by n |
Definizione alla linea 69 del file simple_stat.f90.