|
Colt 1.2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cern.colt.PersistentObject cern.jet.random.Benchmark
Benchmarks random number generation from various distributions as well as PDF and CDF lookups.
Field Summary |
Fields inherited from class cern.colt.PersistentObject |
serialVersionUID |
Method Summary | |
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. |
Methods inherited from class cern.colt.PersistentObject |
clone |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void demo1()
public static void main(String[] args)
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)
|
Colt 1.2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |