Click or drag to resize
StreamingStatisticsPopulationCovariance 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: MathNet.Numerics.Statistics
Assembly: MathNet.Numerics (in MathNet.Numerics.dll) Version: 3.7
Syntax
C#
public static double PopulationCovariance(
	IEnumerable<double> population1,
	IEnumerable<double> population2
)

Parameters

population1
Type: System.Collections.GenericIEnumerableDouble
First population stream.
population2
Type: System.Collections.GenericIEnumerableDouble
Second population stream.

Return Value

Type: Double
See Also