mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
percentile function clean up
This commit is contained in:
parent
b5e6f8f05e
commit
e243db8780
1 changed files with 2 additions and 2 deletions
|
@ -51,8 +51,8 @@ def get_percentile(scores, percent):
|
|||
c = ceil(k)
|
||||
if f == c:
|
||||
return key(scores[int(k)])
|
||||
d0 = key(scores[int(f)]) * (c-k)
|
||||
d1 = key(scores[int(c)]) * (k-f)
|
||||
d0 = (scores[int(f)]) * (c-k)
|
||||
d1 = (scores[int(c)]) * (k-f)
|
||||
return d0+d1
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue