Computes the population or sample covariance (depending on passed arguments).
where is the size of (or number of observations in) vectors x and y,
and are individual elements in x and y,
(ddof) is a degrees of freedom adjustment
(ddof = 0.0 for population variance, ddof = 1.0 for sample variance), and
and are the arithmetic means of x and y.
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_cov(x, y, ddof) result(cov)