standardDeviation function

double standardDeviation(
  1. Array a
)

Return the standard deviation of sample array

Examples

var n = Array([1, 2, 3]);
print(standardDeviation(n));

Implementation

double standardDeviation(Array a) {
  return sqrt(variance(a));
}