public class Population
extends java.lang.Object
This class contains the population for the genetic algorithm
Constructor and Description |
---|
Population()
Default Constructor
|
Population(RuleBase ruleBase,
int Q,
myDataset train,
int totalLabels)
Constructor with parameters
|
Modifier and Type | Method and Description |
---|---|
RuleBase |
bestRB()
It returns the best rule base obtained
|
boolean |
BETTER(int a,
int b)
Maximization
|
void |
Generation()
It performs the generation process
|
void |
writeFile(java.lang.String filename)
It writes the best rule base obtained into file
|
public boolean BETTER(int a, int b)
a
- int first numberb
- int second numberpublic void Generation()
public void writeFile(java.lang.String filename)
filename
- String the name of the filepublic RuleBase bestRB()