mss.ea.ini
Class FloatInitialization
java.lang.Object
|
+--mss.ea.core.GeneticOperator
|
+--mss.ea.ini.Initialization
|
+--mss.ea.ini.FloatInitialization
- All Implemented Interfaces:
- IndividualSource
- public class FloatInitialization
- extends Initialization
Creation of individuals containing float chromosomes.
- Since:
- 0.2.3
- Version:
- $Revision: 1.2 $ $Date: 2001/12/10 14:07:04 $
- Author:
- Andreas Rummler
Field Summary |
protected float |
lowerBound
Lower bound of generated integer values. |
protected float |
upperBound
Upper bound of generated integer values. |
Method Summary |
protected float |
createFloat()
Creates a random float according to the parameters given in the constructor. |
ChromosomeSet |
createSet()
Creates a chromosome set containing chromosomes of type float. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
lowerBound
protected float lowerBound
- Lower bound of generated integer values.
upperBound
protected float upperBound
- Upper bound of generated integer values.
FloatInitialization
public FloatInitialization(float lowerbound,
float upperbound)
- Constructor.
- Parameters:
lowerbound
- lower bound of generated float valuesupperbound
- upper bound of generated float values
FloatInitialization
public FloatInitialization(float lowerbound,
float upperbound,
int indNumber)
- Constructor.
- Parameters:
lowerbound
- lower bound of generated float valuesupperbound
- upper bound of generated float valuesindNumber
- number of indiviuduals to be generated
FloatInitialization
public FloatInitialization(float lowerbound,
float upperbound,
int indNumber,
int setSize)
- Constructor.
- Parameters:
lowerbound
- lower bound of generated float valuesupperbound
- upper bound of generated float valuesindNumber
- number of indiviuduals to be generatedsetSize
- number of chromosomes to be generated
createSet
public ChromosomeSet createSet()
- Creates a chromosome set containing chromosomes of type float.
- Overrides:
createSet
in class Initialization
- Returns:
- generated chromosome set
createFloat
protected float createFloat()
- Creates a random float according to the parameters given in the constructor.
- Returns:
- generated float number
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS