MCPcopy Index your code
hub / github.com/clips/pattern / standard_deviation

Function standard_deviation

pattern/metrics.py:565–570  ·  view source on GitHub ↗

Returns the standard deviation of the given list of values. Low standard deviation => values are close to the mean. High standard deviation => values are spread out over a large range.

(list, *args, **kwargs)

Source from the content-addressed store, hash-verified

563 return sum((x-m)**2 for x in list) / (len(list)-int(sample) or 1)
564
565def standard_deviation(list, *args, **kwargs):
566 """ Returns the standard deviation of the given list of values.
567 Low standard deviation => values are close to the mean.
568 High standard deviation => values are spread out over a large range.
569 """
570 return sqrt(variance(list, *args, **kwargs))
571
572stdev = standard_deviation
573

Callers

nothing calls this directly

Calls 1

varianceFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…