| NMathFunctionsWeightedMean(Int32, Double) 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,
double[] weights
)
Public Shared Function WeightedMean (
data As Integer(),
weights As Double()
) As Double
public:
static double WeightedMean(
array<int>^ data,
array<double>^ weights
)
static member WeightedMean :
data : int[] *
weights : float[] -> float
Parameters
- data Int32
- An array.
- weights Double
- An array of weights.
Return Value
DoubleWeighted mean.
Exceptions See Also