All Packages Class Hierarchy This Package Previous Next Index
Class tw.edu.ncnu.im.cnclab.Algor.Util.AlgorithmBenchmark
java.lang.Object
|
+----tw.edu.ncnu.im.cnclab.Algor.Util.AlgorithmBenchmark
- public class AlgorithmBenchmark
- extends Object
The AlgorithmBenchmark class provides the method to measure
benchmark
- Version:
- 0.4 Jul 8, 1999
- Author:
- Ding-Yi Chen
-
AlgorithmBenchmark(Algorithm, Object[], Frame)
- Constructor of AlgorithmBenchmark.
-
AlgorithmBenchmark(Algorithm, Object[], int, int, int, int, double, double, double, boolean, boolean, Frame)
- Constructor of AlgorithmBenchmark
-
AlgorithmBenchmark(Object[], Frame)
- Constructor of AlgorithmBenchmark.
-
benchmark()
- Begin the benchmark processing.
-
getRawData()
- Return the raw data
-
getResult()
- Return the result.
AlgorithmBenchmark
public AlgorithmBenchmark(Algorithm alg,
Object additionalArg[],
Frame parent)
- Constructor of AlgorithmBenchmark.
- Parameters:
- alg - The algorithm to process.
- additionalArg - The additional argument of the algorithm
start Default: 5 vertices
end Default: 100 vertices
step Default: 5 vertices
retries Default: 3 times
densityStep Default: 0.15
edgeWeightLowerBound Default: 0.0
edgeWeightUpperBound Default: 100.0
directed Default: true
selfLooped Default: false
- parent - The parent Frame of dialog.
AlgorithmBenchmark
public AlgorithmBenchmark(Object arg[],
Frame parent)
- Constructor of AlgorithmBenchmark.
- Parameters:
- arg - The arguments from the BenchmarkDialog.
- parent - The parent Frame of dialog.
AlgorithmBenchmark
public AlgorithmBenchmark(Algorithm alg,
Object additionalArg[],
int start,
int end,
int step,
int retries,
double densityStep,
double edgeWeightLowerBound,
double edgeWeightUpperBound,
boolean directed,
boolean selfLooped,
Frame parent)
- Constructor of AlgorithmBenchmark
- Parameters:
- alg - The algorithm to process.
- additionalArg - The additional argument of the algorithm
- start - The number of vertices to start.
- end - The number of vertices to end.
- step - The step of vertices.
- retries - Indicates the times to retry.
- densityStep - The step of edge density.(0.0< densityStep < 1.0)
- edgeWeightLowerBound - The lower bound of the edge weight.
- edgeWeightUpperBound - The upper bound of the edge weight.
- directed - Indicate whether the graphs directed.
- selfLooped - Indicate whether the graphs have self loop cycles.
- parent - The parent Frame of dialog.
benchmark
public void benchmark()
- Begin the benchmark processing.
getRawData
public long[][] getRawData()
- Return the raw data
- Returns:
- The raw data.
getResult
public long[][] getResult()
- Return the result.
- Returns:
- The result.
All Packages Class Hierarchy This Package Previous Next Index