mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
Fixing get_meansd for numbers < 1
This commit is contained in:
parent
497b5febc3
commit
314fecfcd4
@ -397,7 +397,7 @@ def get_meansd(values):
|
||||
if not values:
|
||||
return float('nan'), float('nan')
|
||||
mean = sum(values) / len(values)
|
||||
sd = math.sqrt(sum([v ** 2 for v in values]) / len(values) - mean ** 2)
|
||||
sd = math.sqrt(sum([(v - mean) ** 2 for v in values]) / len(values))
|
||||
return mean, sd
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user