Type of elements within the source iterable.
The source iterable to inspect.
Optionalselector: Selector<TElement, number>Optional projection that extracts the numeric value for each element. Defaults to the element itself.
Optionalsample: booleanWhen true, computes the sample standard deviation; when false, computes the population standard deviation. Defaults to true.
The calculated standard deviation, or NaN when there are insufficient values to compute it.
This function delegates to variance; when the variance is NaN, that value is returned unchanged. The iterable is enumerated exactly once using a numerically stable single-pass algorithm.
Calculates the standard deviation of the numeric values produced by source.