Computes the population or sample variance (depending on passed arguments).
where is the size of (or number of observations in) vector x,
are individual elements in x,
(ddof) is a degrees of freedom adjustment
(ddof = 0.0 for population variance, ddof = 1.0 for sample variance), and
is the arithmetic mean of x.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Module Procedures
public impure function f_sts_var(x, ddof) result(var)