Aggregation.WeightedVariance Method

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0

Overload List

WeightedVariance<C>(ColumnSelector, ColumnSelector) Creates a descriptor that computes weighted variances for selected value/weight column pairs.
WeightedVariance<C>(C, C) Creates a descriptor that computes weighted variance of one column using another as weights.

WeightedVariance<C>(ColumnSelector, ColumnSelector)

Creates a descriptor that computes weighted variances for selected value/weight column pairs.
C#
public static Aggregation<C, string> WeightedVariance<C>(
	ColumnSelector values,
	ColumnSelector weights
)

Parameters

values  ColumnSelector
The selector that identifies value columns.
weights  ColumnSelector
The selector that identifies weight columns.

Type Parameters

C
The type of the data frame column key.

Return Value

Aggregation<C, String>
A weighted-variance aggregation descriptor.

Remarks

Selector-based binary descriptors expand cartesian.

Exceptions

ArgumentNullExceptionvalues or weights is null.

WeightedVariance<C>(C, C)

Creates a descriptor that computes weighted variance of one column using another as weights.
C#
public static Aggregation<C, string> WeightedVariance<C>(
	C valueKey,
	C weightKey
)

Parameters

valueKey  C
The key of the value column.
weightKey  C
The key of the weight column.

Type Parameters

C
The type of the data frame column key.

Return Value

Aggregation<C, String>
A weighted-variance aggregation descriptor.

Exceptions

ArgumentNullExceptionvalueKey or weightKey is null.

See Also