public abstract class FUN
extends java.lang.Object
Class for duplicate the initial ana used rles and fro filter the used ones. Need: The initial set of rules and the used ones
Modifier and Type | Field and Description |
---|---|
protected double[] |
initial
A set of initial rules
|
protected boolean[] |
used
Mark the used rules
|
Modifier and Type | Method and Description |
---|---|
protected boolean[] |
duplicate(boolean[] x)
The protected method duplicate a set of boolean values
|
protected double[] |
duplicate(double[] x)
The protected method duplicate a set of double values
|
abstract double |
evaluate(double[] x)
The abstract method evaluate the fitness of the rule set
|
protected double[] |
filter(double[] x)
The protected method filter the rules to select the used one
|
protected boolean[] used
protected double[] initial
protected boolean[] duplicate(boolean[] x)
The protected method duplicate a set of boolean values
x
- The set of boolean valuesprotected double[] duplicate(double[] x)
The protected method duplicate a set of double values
x
- The set of double valuesprotected double[] filter(double[] x)
The protected method filter the rules to select the used one
x
- The rulespublic abstract double evaluate(double[] x)
The abstract method evaluate the fitness of the rule set
x
- The set of rules