|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Sample
A statistically representative sample of a data stream.
| Method Summary | |
|---|---|
void |
clear()
Clears all recorded values. |
void |
dump(File output)
Writes the values of the sample to the given file. |
int |
size()
Returns the number of values recorded. |
void |
update(long value)
Adds a new recorded value to the sample. |
List<Long> |
values()
Returns a copy of the sample's values. |
| Method Detail |
|---|
void clear()
int size()
void update(long value)
value - a new recorded valueList<Long> values()
void dump(File output)
throws IOException
output - the file to which the values will be written
IOException - if there is an error writing the values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||