Package cern.jet.random
Class Benchmark
java.lang.Object
cern.colt.PersistentObject
cern.jet.random.Benchmark
- All Implemented Interfaces:
Serializable
,Cloneable
Benchmarks random number generation from various distributions as well as PDF and CDF lookups.
- Version:
- 1.0, 09/24/99
- See Also:
-
Field Summary
FieldsFields inherited from class cern.colt.PersistentObject
serialVersionUID
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Makes this class non instantiable, but still let's others inherit from it. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
demo1()
Prints the first size random numbers generated by the distribution.static void
Benchmarks all subclassesstatic void
Benchmarks all subclassesstatic void
randomInstance
(int size, boolean print, AbstractDistribution dist) generatesrandom numbers from 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.Methods inherited from class cern.colt.PersistentObject
clone
-
Field Details
-
randomGenerator
-
-
Constructor Details
-
Benchmark
protected Benchmark()Makes this class non instantiable, but still let's others inherit from it.
-
-
Method Details
-
demo1
public static void demo1()Prints the first size random numbers generated by the distribution. -
main
Benchmarks all subclasses- Parameters:
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).
-
random
Benchmarks all subclasses- Parameters:
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.
-
randomInstance
generatesrandom numbers from -
test
Prints the first size random numbers generated by the distribution. -
test2
Prints the first size random numbers generated by the distribution. -
test2
Prints the first size random numbers generated by the distribution.
-