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

Function stdev

pattern/db/__init__.py:349–354  ·  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)

Source from the content-addressed store, hash-verified

347 return _sum([(x-a)**2 for x in list]) / (len(list)-1 or 1)
348
349def stdev(list):
350 """ Returns the standard deviation of the given list of values.
351 Low standard deviation => values are close to the mean.
352 High standard deviation => values are spread out over a large range.
353 """
354 return sqrt(variance(list))
355
356#### SQLITE FUNCTIONS ##############################################################################
357# Convenient MySQL functions not in in pysqlite2. These are created at each Database.connect().

Callers 1

groupMethod · 0.85

Calls 1

varianceFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…