public class Benchmark extends PersistentObject
Modifier and Type | Field and Description |
---|---|
protected RandomEngine |
randomGenerator |
serialVersionUID
Modifier | Constructor and Description |
---|---|
protected |
Benchmark()
Makes this class non instantiable, but still let's others inherit from it.
|
Modifier and Type | Method and Description |
---|---|
static void |
demo1()
Prints the first size random numbers generated by the distribution.
|
static void |
main(String[] args)
Benchmarks all subclasses
|
static void |
random(int size,
boolean print,
double mean,
String generatorName)
Benchmarks all subclasses
|
static void |
randomInstance(int size,
boolean print,
AbstractDistribution dist)
generates
|
static void |
test(int size,
AbstractDistribution distribution)
Prints the first size random numbers generated by the distribution.
|
static void |
test2(int size,
AbstractDistribution distribution)
Prints the first size random numbers generated by the distribution.
|
static void |
test2(int size,
AbstractDistribution a,
AbstractDistribution b)
Prints the first size random numbers generated by the distribution.
|
clone
protected RandomEngine randomGenerator
protected Benchmark()
public static void demo1()
public static void main(String[] args)
args[0]
- the number of random numbers to be generated per subclass.args[1]
- true prints each generated number, false does not print generated numbers (use this setting for benchmarking).public static void random(int size, boolean print, double mean, String generatorName)
size
- the number of random numbers to be generated per subclass.print
- true prints each generated number, false does not print generated numbers (use this setting for benchmarking).mean
- the mean for distributions that require a mean.public static void randomInstance(int size, boolean print, AbstractDistribution dist)
public static void test(int size, AbstractDistribution distribution)
public static void test2(int size, AbstractDistribution distribution)
public static void test2(int size, AbstractDistribution a, AbstractDistribution b)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.