|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.algorithm.evolutionary.Population orbital.algorithm.evolutionary.PopulationImpl
public class PopulationImpl
This class implements a population of genomes and provides methods for genetic algorithms.
Constructor Summary | |
---|---|
PopulationImpl()
Construct a new population with no properties set. |
|
PopulationImpl(double maximumRecombination,
double maximumMutation)
Construct a new population. |
|
PopulationImpl(int parentCount,
int childrenCount,
double maximumRecombination,
double maximumMutation)
Construct a new population. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a deep copy of this population. |
static Population |
create(Genome prototype,
int size)
|
int |
getChildrenCount()
Get the number of children produced with one reproduction involving parentCount parents. |
double |
getMaximumMutation()
Get the maximum probability rating of mutation level for reproduction. |
double |
getMaximumRecombination()
Get the maximum probability rating of recombining parental genomes per production. |
int |
getParentCount()
Get the number of abstract parents required to produce children. |
void |
setChildrenCount(int n)
Set the number of children produced with one reproduction involving parentCount parents. |
void |
setMaximumMutation(double mutation)
Set the maximum probability rating of mutation level for reproduction. |
void |
setMaximumRecombination(double recombination)
Set the maximum probability rating of recombining parental genomes per production. |
void |
setParentCount(int n)
Set the number of abstract parents required to produce children. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class orbital.algorithm.evolutionary.Population |
---|
add, create, equals, evaluate, get, get, getFitnessArray, getGeneration, getMembers, getOverallDistance, hashCode, iterator, listIterator, listIterator, remove, remove, setGeneration, size |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PopulationImpl()
public PopulationImpl(int parentCount, int childrenCount, double maximumRecombination, double maximumMutation)
parentCount
- The number of abstract parents required to produce children.childrenCount
- The number of children produced with one reproduction involving parentCount parents.maximumRecombination
- Maximum recombination rating.
Maximum probability rating of recombining parental genomes per production.maximumMutation
- Maximum mutation rating.
Maximum probability rating of mutation level for reproduction.public PopulationImpl(double maximumRecombination, double maximumMutation)
Method Detail |
---|
public java.lang.Object clone()
clone
in class Population
public java.lang.String toString()
Population
toString
in class Population
public int getParentCount()
public void setParentCount(int n)
public int getChildrenCount()
public void setChildrenCount(int n)
public double getMaximumRecombination()
public void setMaximumRecombination(double recombination)
public double getMaximumMutation()
public void setMaximumMutation(double mutation)
public static Population create(Genome prototype, int size)
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |