simuLCS
Class ZCSConfig

java.lang.Object
  extended bysimuLCS.ZCSConfig

public class ZCSConfig
extends java.lang.Object

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

Author:
Benoit, 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

maxPopSize

public static final int maxPopSize
Specifies the maximal number classifiers in the population.

See Also:
Constant Field Values

beta

public static final double beta
The portion of strength a classifier should give to the bucket

See Also:
Constant Field Values

gamma

public static final double gamma
The portion of the bucket redistributed

See Also:
Constant Field Values

theta_GA

public static final double theta_GA
The GA periodicity

See Also:
Constant Field Values

pX

public static final double pX
The probability of applying crossover in an offspring classifier.

See Also:
Constant Field Values

pM

public static final double pM
The probability of mutating one bit in a classifier generated by the GA.

See Also:
Constant Field Values

P_dontcare

public static final double P_dontcare
The probability of using a don't care symbol in a bit when covering.

See Also:
Constant Field Values

strengthIni

public static final double strengthIni
The initial strength value when generating a new classifier

See Also:
Constant Field Values

dontCare

public static final char dontCare
The don't care symbol

See Also:
Constant Field Values

seed

private static long seed
The initialization of the pseudo random generator. Must be at lest one and smaller than _M.


_M

private static final long _M
Constant for the random number generator (modulus of PMMLCG = 2^31 -1).

See Also:
Constant Field Values

_A

private static final long _A
Constant for the random number generator (default = 16807).

See Also:
Constant Field Values

_Q

private static final long _Q
Constant for the random number generator (=_M/_A).

See Also:
Constant Field Values

_R

private static final long _R
Constant for the random number generator (=_M mod _A).

See Also:
Constant Field Values
Constructor Detail

ZCSConfig

public ZCSConfig()
Method Detail

setSeed

public static void setSeed(long s)
Sets a random seed in order to randomize the pseudo random generator.


drand

public static double drand()
Returns a random number in between zero and one.