ArrayStatisticsCovariance(Int32, Int32) Method |
Estimates the unbiased population covariance from the provided two sample arrays.
On a dataset of size N will use an N-1 normalizer (Bessel's correction).
Returns NaN if data has less than two entries or if any entry is NaN.
Namespace: Altaxo.Calc.StatisticsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static double Covariance(
int[] samples1,
int[] samples2
)
Parameters
- samples1 Int32
- First sample array.
- samples2 Int32
- Second sample array.
Return Value
DoubleThe sample covariance between the two sample arrays, or
NaN if there are fewer than two samples or any sample is NaN.
See Also