From b0bbe7b9fab2f752f15b121b5571e78f624c320e Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Sun, 20 Nov 2022 17:18:27 +0100 Subject: [PATCH] fix percentile plots --- .../java/org/lucares/pdb/plot/api/PercentilesAggregator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdb-plotting/src/main/java/org/lucares/pdb/plot/api/PercentilesAggregator.java b/pdb-plotting/src/main/java/org/lucares/pdb/plot/api/PercentilesAggregator.java index cf6d670..e508ea8 100644 --- a/pdb-plotting/src/main/java/org/lucares/pdb/plot/api/PercentilesAggregator.java +++ b/pdb-plotting/src/main/java/org/lucares/pdb/plot/api/PercentilesAggregator.java @@ -55,6 +55,8 @@ public class PercentilesAggregator { } public void collect(final LongLongHashMap map) { + percentiles.put("0.000", 0L); // make sure "0.000" is the first element in the sorted percentiles. Will be + // overwritten with the correct value later map.forEachOrdered(this); percentiles.put("0.000", minValue); percentiles.put("100.000", maxValue);