|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.tubs.cs.sc.casim.Functions
The class Functions provides some predefined functions for use with CAs.
Constructor Summary | |
Functions()
|
Method Summary | |
static java.lang.String |
convertFloatString(java.lang.String s)
|
static void |
doKeepRecord()
make this multithreaded, create the HashMap. |
static double |
drandom()
|
static boolean |
prob(double p)
|
static int |
random(int max)
random integer value in a given range. |
static double |
randomExponential()
|
static int |
round(float x)
round to Integer |
static int |
sign(double x)
|
static int |
sign(int x)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Functions()
Method Detail |
public static final int random(int max)
max
- Upper limit of random values.public static final boolean prob(double p)
p
- the probability
public static final double randomExponential()
public static final double drandom()
public static void doKeepRecord()
public static final int sign(double x)
x
- any value
public static final int sign(int x)
x
- any value
public static java.lang.String convertFloatString(java.lang.String s)
public static final int round(float x)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |