|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.attributeSelection.GeneticSearch.GABitSet
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 |
Constructor Detail |
public GeneticSearch.GABitSet()
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.Exception
- if something goes wrongpublic void setObjective(double objective)
objective
- the objective value of this population memberpublic double getObjective()
public void setFitness(double fitness)
the
- scaled fitness of this population memberpublic double getFitness()
public java.util.BitSet getChromosome()
public void setChromosome(java.util.BitSet c)
the
- chromosome to be set for this population memberpublic 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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |