/** Increments the value in the designated bin by the supplied increment. */ public void increment(final K id, final double increment) { Bin<K> bin = map.get(id); if (bin == null) { bin = new Bin<>(id); map.put(id, bin); } bin.value += increment; }
/** Increments the value in the designated bin by the supplied increment. */ public void increment(final K id, final double increment) { Bin<K> bin = map.get(id); if (bin == null) { bin = new Bin<>(id); map.put(id, bin); } bin.value += increment; }
/** Prefill the histogram with the supplied set of bins. */ public void prefillBins(final K... ids) { for (final K id : ids) { map.put(id, new Bin<>(id)); } }
/** Prefill the histogram with the supplied set of bins. */ public void prefillBins(final K... ids) { for (final K id : ids) { map.put(id, new Bin<>(id)); } }
/** Increments the value in the designated bin by the supplied increment. */ public void increment(final K id, final double increment) { Bin bin = get(id); if (bin == null) { bin = new Bin(id); put(id, bin); } bin.value += increment; mean = null; }
/** Prefill the histogram with the supplied set of bins. */ public void prefillBins(final K... ids) { for (final K id : ids) { put(id, new Bin(id)); } }