Click or drag to resize

NMathFunctionsWeightedMean(Int32, Int32) 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(
	int[] data,
	int[] weights
)

Parameters

data  Int32
An array.
weights  Int32
An array of weights.

Return Value

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