|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutil.Statistics
public abstract class Statistics
Abstract class for encapsulating statistics collected by the runtime system.
Constructor Summary | |
---|---|
Statistics()
|
Method Summary | |
---|---|
abstract void |
dumpFull(PrintStream out)
Prints the full results for the statistics. |
abstract void |
dumpSummary(PrintStream out)
Prints a summary of the statistics. |
abstract void |
merge(Object other)
Merge two of the same type of statistics together. |
protected void |
printFullHeader(PrintStream out,
String header)
Prints out appropriately formatted header for dumpFull(PrintStream) output. |
protected void |
printSummaryHeader(PrintStream out,
String header)
Prints out appropriately formatted for dumpSummary(PrintStream) output. |
protected float[] |
summarizeFloats(Collection<Float> list,
int drop)
Returns mean, min, max, and variance of a collection of floats. |
protected void |
summarizeFloats(PrintStream out,
Collection<Float> list,
int drop,
String prefix)
Prints out mean, min, max, and stdev of a collection of floats. |
protected void |
summarizeFloats(PrintStream out,
Collection<Float> list,
String prefix)
Prints out mean, min, max, and stdev of a collection of floats. |
protected float[] |
summarizeInts(Collection<Integer> list,
int drop)
Returns mean, min, max, and variance of a collection of integers. |
protected void |
summarizeInts(PrintStream out,
Collection<Integer> list,
int drop,
String prefix)
Prints out mean, min, max, and stdev of a collection of integers. |
protected void |
summarizeInts(PrintStream out,
Collection<Integer> list,
String prefix)
Prints out mean, min, max, and stdev of a collection of integers. |
protected float[] |
summarizeLongs(Collection<Long> list,
int drop)
Returns mean, min, max, and variance of a collection of longs. |
protected void |
summarizeLongs(PrintStream out,
Collection<Long> list,
int drop,
String prefix)
Prints out mean, min, max, and stdev of a collection of longs. |
protected void |
summarizeLongs(PrintStream out,
Collection<Long> list,
int drop,
String prefix,
boolean suppressNewline)
Prints out mean, min, max, and stdev of a collection of longs. |
protected void |
summarizeLongs(PrintStream out,
Collection<Long> list,
String prefix)
Prints out mean, min, max, and stdev of a collection of longs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Statistics()
Method Detail |
---|
public abstract void dumpSummary(PrintStream out)
out
- output streampublic abstract void dumpFull(PrintStream out)
out
- output streampublic abstract void merge(Object other)
other
- another statistics object of the same type to be merged withprotected final void printFullHeader(PrintStream out, String header)
dumpFull(PrintStream)
output.
out
- output streamheader
- header to printprotected final void printSummaryHeader(PrintStream out, String header)
dumpSummary(PrintStream)
output.
out
- header
- protected final void summarizeInts(PrintStream out, Collection<Integer> list, String prefix)
out
- output streamlist
- collection of integersprefix
- string to prefix the outputprotected final void summarizeInts(PrintStream out, Collection<Integer> list, int drop, String prefix)
out
- output streamlist
- collection of integersdrop
- exclude the first drop
integers from the outputprefix
- string to prefix the outputprotected final float[] summarizeInts(Collection<Integer> list, int drop)
list
- collection of integersdrop
- exclude the first drop
integers from the results
protected final void summarizeLongs(PrintStream out, Collection<Long> list, String prefix)
out
- output streamlist
- collection of longsprefix
- string to prefix the outputprotected final void summarizeLongs(PrintStream out, Collection<Long> list, int drop, String prefix)
out
- output streamlist
- collection of longsdrop
- exclude the first drop
longs from the outputprefix
- string to prefix the outputprotected final void summarizeLongs(PrintStream out, Collection<Long> list, int drop, String prefix, boolean suppressNewline)
out
- output streamlist
- collection of longsdrop
- exclude the first drop
longs from the outputprefix
- string to prefix the outputnewLine
- suppress trailing newlineprotected final float[] summarizeLongs(Collection<Long> list, int drop)
list
- collection of longsdrop
- exclude the first drop
longs from the results
protected final void summarizeFloats(PrintStream out, Collection<Float> list, String prefix)
out
- output streamlist
- collection of floatsprefix
- string to prefix the outputprotected final void summarizeFloats(PrintStream out, Collection<Float> list, int drop, String prefix)
out
- output streamlist
- collection of floatsdrop
- exclude the first drop
floats from the outputprefix
- string to prefix the outputprotected final float[] summarizeFloats(Collection<Float> list, int drop)
list
- collection of floatsdrop
- exclude the first drop
floats from the results
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |