Click or drag to resize

StreamingStatisticsPopulationCovariance(IEnumerableDouble, IEnumerableDouble) Method

Evaluates the population covariance from the full population provided as two enumerable sequences, in a single pass without memoization. On a dataset of size N will use an N normalizer and would thus be biased if applied to a subset. Returns NaN if data is empty or if any entry is NaN.

Namespace: Altaxo.Calc.Statistics
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static double PopulationCovariance(
	IEnumerable<double> population1,
	IEnumerable<double> population2
)

Parameters

population1  IEnumerableDouble
First population stream.
population2  IEnumerableDouble
Second population stream.

Return Value

Double
The population covariance between the two streams, or double.NaN if data is empty or contains NaN.
See Also