public class HistogramUtils extends Object
Constructor and Description |
---|
HistogramUtils()
Empty default constructor
|
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,
int 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, int nValues)
histogram
- the histogramnValues
- the number of values in the histogramCopyright © 2021. All rights reserved.