| NMathFunctionsWeightedMean(Int32, Int32) Method |
Calculates the weighted average of the given data.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static double WeightedMean(
int[] data,
int[] weights
)
Public Shared Function WeightedMean (
data As Integer(),
weights As Integer()
) As Double
public:
static double WeightedMean(
array<int>^ data,
array<int>^ weights
)
static member WeightedMean :
data : int[] *
weights : int[] -> float
Parameters
- data Int32
- An array.
- weights Int32
- An array of weights.
Return Value
DoubleWeighted mean.
Exceptions See Also