1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00

Convert to float to compute stdev

This commit is contained in:
elsid 2023-12-24 22:55:11 +01:00
parent 03a7643301
commit c6b7dfc23a
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -350,7 +350,7 @@ def make_stats(source, key, values, precision):
sum=fixed_float(sum(values), precision),
mean=fixed_float(statistics.mean(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),
)