static class TestIntersectionPerformance.Results extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
TestIntersectionPerformance.Results.Result
Storage for execution time, number of tests and number of hits.
|
| Constructor and Description |
|---|
Results(int numShapes,
int numVertices)
Construct a Results object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(int numTests,
int numHits,
double executionTime)
Add the result of one run.
|
static String |
getHeader()
Return header string that matches the output of the result method.
|
int |
getNumShapes()
Retrieve the number of shapes used in the tests.
|
int |
getNumVertices()
Retrieve the number of vertices per shape.
|
TestIntersectionPerformance.Results.Result |
getResult(int index)
Retrieve the Result object at the specified index.
|
String |
result(boolean removeOutliers,
boolean verbose)
Return the results as a String.
|
int |
size()
Report number of statistics collected.
|
String |
toString() |
Results(int numShapes,
int numVertices)
numShapes - int; number of shapes constructednumVertices - int; number of vertices per shapepublic void addResult(int numTests,
int numHits,
double executionTime)
numTests - int; number of tests executednumHits - int; number of hits detected in numTests testsexecutionTime - double; total execution time for numTests testspublic int getNumShapes()
public int getNumVertices()
public final int size()
public final TestIntersectionPerformance.Results.Result getResult(int index)
index - int; the index of the requested resultpublic String result(boolean removeOutliers, boolean verbose)
removeOutliers - boolean; if true; remove highest and lowest valuesverbose - boolean; if true; print some diagnostics on the consolepublic static String getHeader()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.