Home | History | Annotate | Download | only in scripts

Lines Matching refs:lst

8 def median(lst):
9 lst = sorted(lst)
10 mid, odd = divmod(len(lst), 2)
12 return lst[mid]
14 return (lst[mid - 1] + lst[mid]) / 2.0
16 def mean(lst):
17 return float(sum(lst)) / max(len(lst), 1)