/** * Returns the total number of sample values (or bins) that have counts greater than zero. This * is equal to the accumulated counts of all distinct samples (duplicates excluded). * * @return the total number of bins */ public long getB() { return this.freqDist.size(); }
@Override public int getNumberOfEvents() { return counts.size(); }
@Override public void putAll(Map<? extends K, ? extends Long> m) { if (f <= .5) ensureCapacity(m.size()); // The resulting map will be sized for m.size() elements else tryCapacity(size() + m.size()); // The resulting map will be tentatively sized for size() + m.size() // elements super.putAll(m); } @SuppressWarnings("unchecked")