MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / stdev

Function stdev

lib/core/common.py:2501–2516  ·  view source on GitHub ↗

Computes standard deviation of a list of numbers. # Reference: http://www.goldb.org/corestats.html >>> "%.3f" % stdev([0.9, 0.9, 0.9, 1.0, 0.8, 0.9]) '0.063'

(values)

Source from the content-addressed store, hash-verified

2499
2500@cachedmethod
2501def stdev(values):
2502 """
2503 Computes standard deviation of a list of numbers.
2504
2505 # Reference: http://www.goldb.org/corestats.html
2506
2507 >>> "%.3f" % stdev([0.9, 0.9, 0.9, 1.0, 0.8, 0.9])
2508 '0.063'
2509 """
2510
2511 if not values or len(values) < 2:
2512 return None
2513 else:
2514 avg = average(values)
2515 _ = 1.0 * sum(pow((_ or 0) - avg, 2) for _ in values)
2516 return sqrt(_ / (len(values) - 1))
2517
2518def calculateDeltaSeconds(start):
2519 """

Callers 3

queryPageMethod · 0.90
_findUnionCharCountFunction · 0.90
wasLastResponseDelayedFunction · 0.85

Calls 1

averageFunction · 0.85

Tested by 1

_findUnionCharCountFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…