|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.brownsoft.ag.individuo.IndividuoBitStreamSimple | +--com.brownsoft.ag.individuo.FuncionDiscreta
Esta clase implementa un individuo del tipo funcion discreta de una sola variable (toma solo valores enteros). Esta clase es abstracta. Las subclases de ella deben implementar el método getFitness() obteniendo el valor (de tipo double) del metodo value()
Field Summary | |
protected long |
from
|
protected long |
to
|
protected java.lang.String |
varName
|
protected long |
width
|
Fields inherited from class com.brownsoft.ag.individuo.IndividuoBitStreamSimple |
bitWidth, maxValue, parents, value |
Constructor Summary | |
FuncionDiscreta(long from,
long to)
Constructor Los distintos puntos del espacio de búsqueda estan igualmente distanciados |
|
FuncionDiscreta(long from,
long to,
java.lang.String varName)
Constructor Los distintos puntos del espacio de búsqueda estan igualmente distanciados |
Method Summary | |
java.lang.Object |
getFenotipo()
Obtiene el fenotipo de este individuo |
abstract double |
getFitness()
Las subclases deben implementar este método |
java.lang.String |
toString()
|
double |
value()
Obtiene el valor que toma la variable independiente |
Methods inherited from class com.brownsoft.ag.individuo.IndividuoBitStreamSimple |
equals, getBitWidth, getCopy, getParents, getValue, hashCode, setParents, setRandom, setValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected long from
protected long to
protected long width
protected java.lang.String varName
Constructor Detail |
public FuncionDiscreta(long from, long to)
from
- limite izquierdo del dominio de la funcion (inclusive)to
- limite derecho del dominio de la funcion (inclusive)public FuncionDiscreta(long from, long to, java.lang.String varName)
from
- limite izquierdo del dominio de la funcion (inclusive)to
- limite derecho del dominio de la funcion (inclusive)varName
- nombre de la variable de la funciónMethod Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public double value()
value
in interface IFuncion
public java.lang.Object getFenotipo()
getFenotipo
in interface IIndividuo
public abstract double getFitness()
getFitness
in interface IIndividuo
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |