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