deviation function

double? deviation(
  1. Iterable<num> iterable
)

Returns the standard deviation of the given iterable.

Implementation

double? deviation(Iterable<num> iterable) {
  final v = variance(iterable);
  if (v == null) return null;
  return math.sqrt(v);
}