|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Histogram
A data aggregation with utility methods for converting the internal representations to text. A histogram takes in arbitrary data samples and keeps track of the distributions and count of samples seen. Each histogram should be considered a view on the data itself, not a collection of the data.
| Method Summary | |
|---|---|
void |
bin(long value)
Updates the state of the histogram by finding the appropriate bin for the provided value and then incrementing the number of samples seen for that bin. |
void |
clear()
Clears the internal state of the histogram, removing all collected samples. |
int |
size()
Returns the number of samples represented by this histogram. |
String |
toString()
Returns a text-based representation of this histogram. |
String |
toString(String binLabel)
Returns a text-based representation of this histogram where each of the bins has the provided label. |
| Method Detail |
|---|
void bin(long value)
value - the value to be aggregatedvoid clear()
int size()
String toString()
toString in class ObjectString toString(String binLabel)
binLabel - the label to be appended to the name of each of
the bins.
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||