Returns an aggregator that uses observations from another variable to compute a weighted average.
Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public static Aggregator WeightedAverage(
Public Shared Function WeightedAverage (
weights As NumericalVariable
) As Aggregator
static Aggregator^ WeightedAverage(
static member WeightedAverage :
weights : NumericalVariable -> Aggregator
- Type: Extreme.StatisticsNumericalVariable
A NumericalVariable that contains the weights.
The weights variable should typically have at least the same length
as the variable being aggregated. If it is not long enough to supply all the weights for an
aggregation, a ArgumentOutOfRangeException is thrown.
This type of aggregator is used, for example, in financial data analysis to calculate the volume-weighted
average of a stock price.
Supported in: 5.x, 4.x