|
|||||||||||
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.FuncionPuntoFijo
Esta clase implementa un individuo del tipo funcion de punto fijo de una sola variable. 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 double |
from
|
protected boolean |
isDiscrete
|
protected double |
to
|
protected java.lang.String |
varName
|
protected double |
width
|
Fields inherited from class com.brownsoft.ag.individuo.IndividuoBitStreamSimple |
bitWidth, maxValue, parents, value |
Constructor Summary | |
FuncionPuntoFijo(double from,
double to,
int bitWidth)
Constructor |
|
FuncionPuntoFijo(double from,
double to,
int bitWidth,
java.lang.String varName)
Constructor |
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 double from
protected double to
protected double width
protected java.lang.String varName
protected boolean isDiscrete
Constructor Detail |
public FuncionPuntoFijo(double from, double to, int bitWidth)
from
- limite izquierdo del dominio de la funcion (inclusive)to
- limite derecho del dominio de la funcion (inclusive)bitWidth
- cantidad de bits en la representacion del individuo. Los
distintos puntos del espacio de búsqueda estan igualmente distanciados. Si
el bitWidth es 0, se toman solamente valores enteros para la variable
independiente (o sea, trabaja igual que FuncionDiscreta)public FuncionPuntoFijo(double from, double to, int bitWidth, java.lang.String varName)
from
- limite izquierdo del dominio de la funcion (inclusive)to
- limite derecho del dominio de la funcion (inclusive)bitWidth
- cantidad de bits en la representacion del individuo. Los
distintos puntos del espacio de búsqueda estan igualmente distanciados. Si
el bitWidth es 0, se toman solamente valores enteros para la variable
independiente (o sea, trabaja igual que FuncionDiscreta)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 |