|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.attributeSelection.GeneticSearch.GABitSet
Field Summary | |
private java.util.BitSet |
m_chromosome
|
private double |
m_fitness
|
private double |
m_objective
holds raw merit |
Constructor Summary | |
GeneticSearch.GABitSet()
Constructor |
Method Summary | |
void |
clear(int bit)
unset a bit in the chromosome |
java.lang.Object |
clone()
makes a copy of this GABitSet |
boolean |
get(int bit)
get the value of a bit in the chromosome |
java.util.BitSet |
getChromosome()
get the chromosome |
double |
getFitness()
gets the scaled fitness |
double |
getObjective()
gets the objective merit |
void |
set(int bit)
set a bit in the chromosome |
void |
setChromosome(java.util.BitSet c)
set the chromosome |
void |
setFitness(double fitness)
sets the scaled fitness |
void |
setObjective(double objective)
sets the objective merit value |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.BitSet m_chromosome
private double m_objective
private double m_fitness
Constructor Detail |
public GeneticSearch.GABitSet()
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.Exception
- if something goes wrong
java.lang.CloneNotSupportedException
public void setObjective(double objective)
objective
- the objective value of this population memberpublic double getObjective()
public void setFitness(double fitness)
public double getFitness()
public java.util.BitSet getChromosome()
public void setChromosome(java.util.BitSet c)
public void clear(int bit)
bit
- the bit to be clearedpublic void set(int bit)
bit
- the bit to be setpublic boolean get(int bit)
bit
- the bit to query
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |