|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--bsoc.genetic.Mutator
Generates a serie of booleans. The probability of true is the mutation rate.
| Constructor Summary | |
Mutator(int mutRate)
Undefined initialisation of the random generator. |
|
Mutator(int mutRate,
long seed)
Generates a mutator that gives a serie of booleans where the probabillity of true is the mutation rate. |
|
| Method Summary | |
boolean |
isMutation()
Returns the next value of the boolean sequence. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Mutator(int mutRate,
long seed)
mutRate - The mutation rate in per million. Values must be
between 0 and 1000000.seed - Initial Value for the random generator.public Mutator(int mutRate)
| Method Detail |
public boolean isMutation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||