public class Specify
extends java.lang.Object
The class implement the specify operator proposed by Lanzi
Modifier and Type | Method and Description |
---|---|
void |
makeSpecify(Population pop,
Population actionSet,
double[] envState,
int tStamp)
It applies the specify operator to the population.
|
public void makeSpecify(Population pop, Population actionSet, double[] envState, int tStamp)
It applies the specify operator to the population. If the average prediction error of the action set is twice larger than the average prediction error of the population and the classifiers in the action set have been updated Nsp times (Config), then, a classifier is selected randomly from the action set (with probability proportional to its prediction error), and its don't care caracters are replaced with a probability Psp (Config) with the corresponding digit in the system input.
pop
- is the Population
actionSet
- is the action set of that iteration.
envState
- is the environmental state (the input).
tStamp
- time Stamp.