Aggregation.Weighted Mean 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 means for selected value/weight column pairs. |
| Weighted | Creates a descriptor that computes the weighted mean of one column using another as weights. |
WeightedMean<C>(ColumnSelector, ColumnSelector)
Creates a descriptor that computes weighted means for selected value/weight column pairs.
public static Aggregation<C, string> WeightedMean<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-mean aggregation descriptor.
Remarks
Selector-based binary descriptors expand cartesian.
Exceptions
| Argument | values or weights is null. |
WeightedMean<C>(C, C)
Creates a descriptor that computes the weighted mean of one column using another as weights.
public static Aggregation<C, string> WeightedMean<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-mean aggregation descriptor.
Exceptions
| Argument | valueKey or weightKey is null. |