mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-15 10:36:44 +00:00
Convert to float to compute stdev
This commit is contained in:
parent
03a7643301
commit
c6b7dfc23a
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ def make_stats(source, key, values, precision):
|
||||||
sum=fixed_float(sum(values), precision),
|
sum=fixed_float(sum(values), precision),
|
||||||
mean=fixed_float(statistics.mean(values), precision),
|
mean=fixed_float(statistics.mean(values), precision),
|
||||||
median=fixed_float(statistics.median(values), precision),
|
median=fixed_float(statistics.median(values), precision),
|
||||||
stdev=fixed_float(statistics.stdev(values), precision),
|
stdev=fixed_float(statistics.stdev(float(v) for v in values), precision),
|
||||||
q95=fixed_float(numpy.quantile(values, 0.95), precision),
|
q95=fixed_float(numpy.quantile(values, 0.95), precision),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue