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)
| 347 | return _sum([(x-a)**2 for x in list]) / (len(list)-1 or 1) |
| 348 | |
| 349 | def 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(). |