eaLib API Docs
Last Modified : January 7 2002

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.
 
Fields inherited from class mss.ea.ini.Initialization
number, setSize
 
Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
FloatInitialization(float lowerbound, float upperbound)
          Constructor.
FloatInitialization(float lowerbound, float upperbound, int indNumber)
          Constructor.
FloatInitialization(float lowerbound, float upperbound, int indNumber, int setSize)
          Constructor.
 
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 mss.ea.ini.Initialization
getChromosomeSize, getIndividualNumber, getStream, next, setChromosomeSize, setIndividualNumber
 
Methods inherited from class mss.ea.core.GeneticOperator
getDescription, getID, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lowerBound

protected float lowerBound
Lower bound of generated integer values.

upperBound

protected float upperBound
Upper bound of generated integer values.
Constructor Detail

FloatInitialization

public FloatInitialization(float lowerbound,
                           float upperbound)
Constructor.
Parameters:
lowerbound - lower bound of generated float values
upperbound - upper bound of generated float values

FloatInitialization

public FloatInitialization(float lowerbound,
                           float upperbound,
                           int indNumber)
Constructor.
Parameters:
lowerbound - lower bound of generated float values
upperbound - upper bound of generated float values
indNumber - 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 values
upperbound - upper bound of generated float values
indNumber - number of indiviuduals to be generated
setSize - number of chromosomes to be generated
Method Detail

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

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS