public class Histogram extends Object
Constructor and Description |
---|
Histogram(List<Double> rangeDividers)
Creates a new histogram that is composed of the ranges divided at the given points.
|
Histogram(String rangeDividers)
Creates the histogram based on the comma separated string of range split points.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double value)
Adds a new value to be counted in the histogram.
|
void |
add(int value)
Adds a new value to be counted in the histogram.
|
Long |
getCount()
Gets the total number of values counted in the histogram.
|
Map<Range,Long> |
getHistogram()
Gets the actual counts for individual ranges of the histogram.
|
Map<Range,Double> |
getHistogramInPercent()
Gets the actual counts for individual ranges of the histogram.
|
public Histogram(String rangeDividers)
rangeDividers
- The comma separated string of range split points.public void add(double value)
value
- The new value to be added and counted.public void add(int value)
value
- The new value to be added and counted.public Map<Range,Long> getHistogram()
public Map<Range,Double> getHistogramInPercent()
public Long getCount()
Copyright © 2010–2017 PerfCake Community. All rights reserved.