Skip to content

Commit

Permalink
Clarify use of median
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis committed Jan 23, 2025
1 parent b83600f commit 93baf19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/precice-aste-evaluate
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ class Calculator:
np.nanmax(abs_diff),
np.nanmax(difference),
)
p99, p95, p90, median = np.percentile(abs_diff, [99, 95, 90, 50])
p99, p95, p90 = np.percentile(abs_diff, [99, 95, 90])
median = np.median(abs_diff)
relative = np.sqrt(np.nansum(np.square(abs_diff)) / abs_diff.size)
decorator = 15 * "*"
spaces = 5 * " "
Expand Down

0 comments on commit 93baf19

Please sign in to comment.