coeffs_zero computes means and standard deviations of variables, sums of squares and cross-products about zero, and correlation-like coefficients for a set of data.

For full information please refer to the NAG Library document for g02bd

xfloat, array-like, shape

must be set to the value of , the th observation on the th variable, for , for .

xbarfloat, ndarray, shape

contains the mean value, , of the th variable, for .

stdfloat, ndarray, shape

The standard deviation, , of the th variable, for .

sspzfloat, ndarray, shape

is the cross-product about zero, , for , for .

rzfloat, ndarray, shape

is the correlation-like coefficient, , between the th and th variables, for , for .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .


No equivalent traditional C interface for this routine exists in the NAG Library.

The input data consists of observations for each of variables, given as an array

where is the th observation on the th variable.

The quantities calculated are:

  1. Means:

  2. Standard deviations:

  3. Sums of squares and cross-products about zero:

  4. Correlation-like coefficients:

    If or is zero, is set to zero.