Category
Calculate the relative standard deviation (coefficient of variation) of a sequence of numbers.
Time complexity: O(n)
Space complexity: O(1)
Values to use in the calculation
The mean of values, will be calculated if not provided
values
The standard deviation of values
Math
relativeStddev([1, 2, 3]); // 0.5 Copy
relativeStddev([1, 2, 3]); // 0.5
Calculate the relative standard deviation (coefficient of variation) of a sequence of numbers.
Time complexity: O(n)
Space complexity: O(1)