- add
Adds a new data point to the histogram approximation. Make sure you have called
either allocate() or
- allocate
Sets the number of histogram bins to use for approximating data.
- getBin
Returns a particular histogram bin.
- getUsedBins
Returns the number of bins currently being used by the histogram.
- isReady
Returns true if this histogram object has been initialized by calling merge() or
allocate().
- merge
Takes a serialized histogram created by the serialize() method and merges it
with the current histog
- quantile
Gets an approximate quantile value from the current histogram. Some popular
quantiles are 0.5 (media
- reset
Resets a histogram object to its initial state. allocate() or merge() must be
called again before us
- serialize
In preparation for a Hive merge() call, serializes the current histogram object
into an ArrayList of
- trim
Trims a histogram down to 'nbins' bins by iteratively merging the closest bins.
If two pairs of bins
- getNumBins
- lengthFor