Click or drag to resize

NMathFunctionsWeightedMean(IDFColumn, IDFColumn) Method

Calculates the weighted average of the given data.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double WeightedMean(
	IDFColumn data,
	IDFColumn weights
)

Parameters

data  IDFColumn
A column.
weights  IDFColumn
A column of weights.

Return Value

Double
Weighted mean.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if data is not numeric.
MismatchedSizeException Thrown if data and weights do not have the same length.
See Also