|
Algorithm Development Kit 1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectalgs.model.tests.common.TrialSuite
public class TrialSuite
Represents a suite of timed trials.
Automatically throws away the lowest and highest of all trials sizes when computing the average.
Constructor Summary | |
---|---|
TrialSuite()
|
Method Summary | |
---|---|
void |
addTrial(long n,
long startTime,
long endTime)
Record the timing of a trial of size n that started at startTime and completed at endTime. |
java.lang.String |
computeTable()
Produce full table of information. |
java.lang.String |
getAverage(long n)
Return a single average, if it exists in the table. |
java.lang.String |
getRow(long n)
Return a single row, if it exists in the table. |
java.lang.String |
histogram()
|
java.util.Iterator<java.lang.Long> |
keys()
Expose the set of keys maintained by the table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrialSuite()
Method Detail |
---|
public java.util.Iterator<java.lang.Long> keys()
public java.lang.String getAverage(long n)
n
- the desired row.public java.lang.String getRow(long n)
n
- the desired row.public java.lang.String computeTable()
public java.lang.String histogram()
public void addTrial(long n, long startTime, long endTime)
n
- startTime
- endTime
-
|
Algorithm Development Kit 1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |