Aggregation.Weighted Variance Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
Overload List
| Weighted | Creates a descriptor that computes weighted variances for selected value/weight column pairs. |
| Weighted | 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.
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
| Argument | values or weights is null. |
WeightedVariance<C>(C, C)
Creates a descriptor that computes weighted variance of one column using another as weights.
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
| Argument | valueKey or weightKey is null. |