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

Function average

lib/core/common.py:2490–2498  ·  view source on GitHub ↗

Computes the arithmetic mean of a list of numbers. >>> "%.1f" % average([0.9, 0.9, 0.9, 1.0, 0.8, 0.9]) '0.9'

(values)

Source from the content-addressed store, hash-verified

2488 return kb.cache.content[filename]
2489
2490def average(values):
2491 """
2492 Computes the arithmetic mean of a list of numbers.
2493
2494 >>> "%.1f" % average([0.9, 0.9, 0.9, 1.0, 0.8, 0.9])
2495 '0.9'
2496 """
2497
2498 return (1.0 * sum(values) / len(values)) if values else None
2499
2500@cachedmethod
2501def stdev(values):

Callers 3

_findUnionCharCountFunction · 0.90
stdevFunction · 0.85
wasLastResponseDelayedFunction · 0.85

Calls

no outgoing calls

Tested by 1

_findUnionCharCountFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…