aboutsummaryrefslogtreecommitdiff
path: root/compute-variability.py
diff options
context:
space:
mode:
authorLaurent Alfonsi <laurent.alfonsi@linaro.org>2024-02-27 15:24:17 +0100
committerLaurent Alfonsi <laurent.alfonsi@linaro.org>2024-02-27 15:24:17 +0100
commit39a03d7d0a211358cb94af0e76b3dabc0aa120d5 (patch)
tree4ba4b6293c64c0d083ac118de08f5fa9f932b3fb /compute-variability.py
parent8fc80e77d5a310ebd84847ad0d8353ec34affd82 (diff)
compute-variability.py: Fixed weight average computation
Change-Id: Idf791494742965fe89672dc3ffedff9b4e74b16f
Diffstat (limited to 'compute-variability.py')
-rwxr-xr-xcompute-variability.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/compute-variability.py b/compute-variability.py
index 66b86ca..4101c69 100755
--- a/compute-variability.py
+++ b/compute-variability.py
@@ -36,7 +36,7 @@ def parse_args():
"""
Routine to compute weighted average. """
def compute_weighted_avg(weights, values):
- w = weights.transpose().iloc[0].to_numpy()
+ w = list(reversed( weights.transpose().iloc[0].to_numpy() ))
v = values.iloc[2:-1].astype("float").to_numpy()
assert len(w) == len(v)