public class HistogramUtils extends Object
Constructor and Description |
---|
HistogramUtils() |
Modifier and Type | Method and Description |
---|---|
static Double |
getMedianValue(HashMap<Double,Integer> histogram)
Returns the median of a histogram.
|
static Double |
getMedianValue(HashMap<Double,Integer> histogram,
long nValues)
Returns the median of a histogram.
|
static HashMap<Double,Integer> |
mergeHistograms(Collection<HashMap<Double,Integer>> histograms)
Merges histograms in a single histogram by adding the values in each bin.
|
public static Double getMedianValue(HashMap<Double,Integer> histogram)
histogram
- the histogrampublic static Double getMedianValue(HashMap<Double,Integer> histogram, long nValues)
histogram
- the histogramnValues
- the number of values in the histogramCopyright © 2019. All rights reserved.