public covariance(notnull other as NDArray<T>, ddof as Long = 1l, ignoreNaN as Boolean = false) as Double
Sample covariance of two equally-sized 1D series, in Double. Uses paired centered online moments; no centered tensor copies are made.
| Parameter | Description |
|---|---|
other | Second series of the same numeric type and length. |
ddof | Non-negative correction; default 1 estimates sample covariance. |
ignoreNaN | Drop a pair if either member is NaN, otherwise propagate NaN. |
Scalar covariance.
value = x.covariance(y, ddof=0l)