| NMathFunctionsWeightedStandardDeviation(Double, Double, Boolean) Method |
Calculates the weighted standard deviation of the given data.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static double WeightedStandardDeviation(
double[] data,
double[] weights,
bool normalize
)
Public Shared Function WeightedStandardDeviation (
data As Double(),
weights As Double(),
normalize As Boolean
) As Double
public:
static double WeightedStandardDeviation(
array<double>^ data,
array<double>^ weights,
bool normalize
)
static member WeightedStandardDeviation :
data : float[] *
weights : float[] *
normalize : bool -> float
Parameters
- data Double
- The data.
- weights Double
- The weights.
- normalize Boolean
-
If true, normalize the weights to sum to the length of the data array. If the weights
represent sampling (reliability) weights, normalizing is usually appropriate. But if the weights
represent frequency counts, which in effect expand the data vector by these counts, do not normalize.
Return Value
DoubleThe weighted standard deviation.
Exceptions See Also