|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectsimuLCS.ZCSConfig
Parameters used by our ZCS. A few lines of code (random number generator) below draw inspiration from the freely available XCSJava by Martin V. Butz
| Field Summary | |
private static long |
_A
Constant for the random number generator (default = 16807). |
private static long |
_M
Constant for the random number generator (modulus of PMMLCG = 2^31 -1). |
private static long |
_Q
Constant for the random number generator (=_M/_A). |
private static long |
_R
Constant for the random number generator (=_M mod _A). |
static double |
beta
The portion of strength a classifier should give to the bucket |
static char |
dontCare
The don't care symbol |
static double |
gamma
The portion of the bucket redistributed |
static int |
maxPopSize
Specifies the maximal number classifiers in the population. |
static double |
P_dontcare
The probability of using a don't care symbol in a bit when covering. |
static double |
pM
The probability of mutating one bit in a classifier generated by the GA. |
static double |
pX
The probability of applying crossover in an offspring classifier. |
private static long |
seed
The initialization of the pseudo random generator. |
static double |
strengthIni
The initial strength value when generating a new classifier |
static double |
theta_GA
The GA periodicity |
| Constructor Summary | |
ZCSConfig()
|
|
| Method Summary | |
static double |
drand()
Returns a random number in between zero and one. |
static void |
setSeed(long s)
Sets a random seed in order to randomize the pseudo random generator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int maxPopSize
public static final double beta
public static final double gamma
public static final double theta_GA
public static final double pX
public static final double pM
public static final double P_dontcare
public static final double strengthIni
public static final char dontCare
private static long seed
private static final long _M
private static final long _A
private static final long _Q
private static final long _R
| Constructor Detail |
public ZCSConfig()
| Method Detail |
public static void setSeed(long s)
public static double drand()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||