|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Number
orbital.algorithm.evolutionary.Gene.Number
orbital.algorithm.evolutionary.Gene.Float
orbital.algorithm.evolutionary.Gene.BoundedFloat
public static class Gene.BoundedFloat
Bounded floating point gene data.
This implementation uses a floating-point Double bounded to a specified range as Gene data.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface orbital.algorithm.evolutionary.Gene |
|---|
Gene.BitSet, Gene.BoundedFloat, Gene.BoundedInteger, Gene.Fixed, Gene.Float, Gene.Integer, Gene.List, Gene.Number |
| Constructor Summary | |
|---|---|
Gene.BoundedFloat(double min,
double max)
Construct a non-initialized BoundedFloat. |
|
Gene.BoundedFloat(double data,
double min,
double max)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this gene. |
boolean |
equals(java.lang.Object o)
Checks for equality. |
double |
getMax()
Get the upper bound for value. |
double |
getMin()
Get the lower bound for value. |
int |
hashCode()
Calculates a hash code according to the doubleValue. |
void |
set(double n)
|
| Methods inherited from class orbital.algorithm.evolutionary.Gene.Float |
|---|
doubleValue, get, recombine, set |
| Methods inherited from class orbital.algorithm.evolutionary.Gene.Number |
|---|
distanceMeasure, floatValue, intValue, inverse, longValue, mutate, toString |
| Methods inherited from class java.lang.Number |
|---|
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Gene.BoundedFloat(double data,
double min,
double max)
public Gene.BoundedFloat(double min,
double max)
Note: non-initialized (that is Double.NaN) Floats are immune to mutation
which is no good starting-point for creating a population.
| Method Detail |
|---|
public java.lang.Object clone()
Gene
clone in interface Geneclone in class Gene.Floatpublic boolean equals(java.lang.Object o)
equals in interface Geneequals in class Gene.Numberpublic int hashCode()
Gene.Number
hashCode in interface GenehashCode in class Gene.Numberpublic void set(double n)
set in class Gene.Floatpublic double getMin()
public double getMax()
|
Orbital library 1.2.0: 23 Apr 2008 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||