Calculates the standard deviation of an array of numbers.
If you already have the mean value of the array, this can be passed in.
Otherwise it will be computed.
If usePopulation is true, array is assumed to be the entire population (same as Excel's STDEV.P function)
Otherwise, it's like Excel's STDEV.S function which assumes data represents a sample of entire population.
Parameters
array: number[]
Array of values
usePopulation: boolean = false
If true result is similar to Excel's STDEV.P. Otherwise like STDEV.S
OptionalmeanValue: number
Mean value if pre-computed, otherwise skip this parameter for it to be computed automatically
Calculates the standard deviation of an array of numbers.
If you already have the mean value of the array, this can be passed in. Otherwise it will be computed.
If
usePopulationis true,arrayis assumed to be the entire population (same as Excel's STDEV.P function) Otherwise, it's like Excel's STDEV.S function which assumes data represents a sample of entire population.