|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.kumpe.hadooptimizer.EsIndividual
public final class EsIndividual
A special type of an immutable individual for evolution strategies.
The actual individual is a vector of real numbers (double[]). It
is combined with an increment (the standard deviation during the mutation of
the vector), which is mutated by itself.
Note: a instance is considered immutable, so you should not modify
the contained individual. See getIndividual() for additional
hints.
| Constructor Summary | |
|---|---|
EsIndividual(double individual)
Creates a new EsIndividual with the given single
individual, which is converted to one-dimensional vector, and an
increment of 1. |
|
EsIndividual(double[] individual)
Creates a new EsIndividual with the given individual and
an increment of 1. |
|
EsIndividual(double[] individual,
double increment)
Creates a new EsIndividual with the given individual and
increment. |
|
EsIndividual(double individual,
double increment)
Creates a new EsIndividual with the given single
individual, which is converted to one-dimensional vector, and the
given increment. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
double |
getIncrement()
Returns the current increment. |
double[] |
getIndividual()
Return the contained actual individual. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EsIndividual(double individual)
EsIndividual with the given single
individual, which is converted to one-dimensional vector, and an
increment of 1.
public EsIndividual(double[] individual)
EsIndividual with the given individual and
an increment of 1.
NullPointerException - if individual is null
IllegalArgumentException - if individual is an empty array
public EsIndividual(double individual,
double increment)
EsIndividual with the given single
individual, which is converted to one-dimensional vector, and the
given increment.
public EsIndividual(double[] individual,
double increment)
EsIndividual with the given individual and
increment.
NullPointerException - if individual is null
IllegalArgumentException - if individual is an empty array| Method Detail |
|---|
public double[] getIndividual()
Note: An instance of EsIndividual is considered to be
immutable, but for performance reasons the contained array is not copied.
So don't modify the returned array.
nullpublic double getIncrement()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||