|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.kumpe.hadooptimizer.impl.IdentityMutator<I>
I - the individuals' typepublic final class IdentityMutator<I>
The IdentityMutator effectively does nothing, it just passes the
input-individual through.
| Constructor Summary | |
|---|---|
IdentityMutator()
|
|
| Method Summary | |
|---|---|
double |
getMinIncrement()
Returns the minimal allowed increment. |
double[] |
mutate(double[] individual,
double increment)
Mutates the given individual with the specified increment. |
I |
mutate(I individual)
Creates a mutant of the given individual. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IdentityMutator()
| Method Detail |
|---|
public I mutate(I individual)
MutatorThe general contract is to not modify the given individual, but return a mutated copy.
mutate in interface Mutator<I>individual - the individual to mutate
public double[] mutate(double[] individual,
double increment)
EsWrappableMutator
mutate in interface EsWrappableMutatorindividual - the individual to mutateincrement - the increment for the mutation (mainly the standard deviation
of a normal distributed random number)
public double getMinIncrement()
EsWrappableMutator
getMinIncrement in interface EsWrappableMutatorpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||