Function Math Statistics Class

StandardDeviationPopulationArray

Population standard deviation of numeric values. More efficient version of the StandardDeviationPopulation Function but with restrictions on the arguments it accepts.

Signature (Visual Basic / VBA)

Public Function StandardDeviationPopulationArray( _
    ByRef vValues As Variant _
    ) As Variant

Code Example

    StandardDeviationPopulationArray(Array(12, 34, 56)) = 17.96292478041
    StandardDeviationPopulationArray(SampleData) = 23.610026786078

Parameters

Parameter Description
vValues Numeric-type array or Variant array containing only numeric elements. This function is NOT affected by the current setting of the StatVarType Property. It assumes that vValues is an array that contains only numeric elements.

Return Value

Function returns the population standard deviation of the numeric values. Function returns Null if the array is empty, or if there is some type of error, such as if the argument is a Variant array which contains an Object reference or String.

Notes & Version History

v1.5 Note StandardDeviationArray and StandardDeviationPopulationArray replace the StandardDeviationVariantVector function, which has been removed from ArrayArithmetic Class. This function is slightly different in that it examines all of the elements in the array from its lower bound through its upper bound.