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

Constructor Index

 o AlgorithmBenchmark(Algorithm, Object[], Frame)
Constructor of AlgorithmBenchmark.
 o AlgorithmBenchmark(Algorithm, Object[], int, int, int, int, double, double, double, boolean, boolean, Frame)
Constructor of AlgorithmBenchmark
 o AlgorithmBenchmark(Object[], Frame)
Constructor of AlgorithmBenchmark.

Method Index

 o benchmark()
Begin the benchmark processing.
 o getRawData()
Return the raw data
 o getResult()
Return the result.

Constructors

 o 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.
 o AlgorithmBenchmark
 public AlgorithmBenchmark(Object arg[],
                           Frame parent)
Constructor of AlgorithmBenchmark.

Parameters:
arg - The arguments from the BenchmarkDialog.
parent - The parent Frame of dialog.
 o 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.

Methods

 o benchmark
 public void benchmark()
Begin the benchmark processing.

 o getRawData
 public long[][] getRawData()
Return the raw data

Returns:
The raw data.
 o getResult
 public long[][] getResult()
Return the result.

Returns:
The result.

All Packages  Class Hierarchy  This Package  Previous  Next  Index