| NMathFunctionsWeightedStandardDeviation(DoubleVector, DoubleVector, 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(
DoubleVector data,
DoubleVector weights,
bool normalizeWeights
)
Public Shared Function WeightedStandardDeviation (
data As DoubleVector,
weights As DoubleVector,
normalizeWeights As Boolean
) As Double
public:
static double WeightedStandardDeviation(
DoubleVector^ data,
DoubleVector^ weights,
bool normalizeWeights
)
static member WeightedStandardDeviation :
data : DoubleVector *
weights : DoubleVector *
normalizeWeights : bool -> float
Parameters
- data DoubleVector
- The data.
- weights DoubleVector
- The weights.
- normalizeWeights Boolean
-
If true, normalize the weights to sum to the length of the data vector. 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