fsml_cov Interface

public interface fsml_cov

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.

Vectors x and y must be the same size.

Calls

interface~~fsml_cov~~CallsGraph interface~fsml_cov fsml_cov proc~f_sts_cov f_sts_cov interface~fsml_cov->proc~f_sts_cov proc~f_sts_cov_core f_sts_cov_core proc~f_sts_cov->proc~f_sts_cov_core proc~s_err_print s_err_print proc~f_sts_cov->proc~s_err_print proc~f_sts_mean_core f_sts_mean_core proc~f_sts_cov_core->proc~f_sts_mean_core proc~f_utl_r2c f_utl_r2c proc~s_err_print->proc~f_utl_r2c

Module Procedures

public impure function f_sts_cov(x, y, ddof) result(cov)

Impure wrapper function for f_sts_cov_core.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: x(:)

x vector (assumed size array)

real(kind=wp), intent(in) :: y(:)

y vector (assumed size array)

real(kind=wp), intent(in), optional :: ddof

delta degrees of freedom

Return Value real(kind=wp)

covariance