public class Gene
extends java.lang.Object
It is used for representing and handling a gene throughout the evolutionary learning
Constructor and Description |
---|
Gene(double[] displacements)
It creates a new gene by setting up its displacements
|
Modifier and Type | Method and Description |
---|---|
double |
calculateOverlapFactor(FuzzyAttribute uniform_fuzzy_attr)
It computes the overlap factor for the membership functions involved in a gene
|
Gene |
clone()
It allows to clone correctly a gene
|
boolean |
equals(java.lang.Object obj)
It indicates whether some other gene is "equal to" this one
|
double[] |
getDisplacements()
It returns the displacements of a gene
|
java.lang.String |
toString()
It returns a raw string representation of a gene
|
public Gene(double[] displacements)
It creates a new gene by setting up its displacements
displacements
- The displacements values to set up for the genepublic double[] getDisplacements()
It returns the displacements of a gene
public double calculateOverlapFactor(FuzzyAttribute uniform_fuzzy_attr)
uniform_fuzzy_attr
- fuzzy attribute given.public Gene clone()
It allows to clone correctly a gene
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
It indicates whether some other gene is "equal to" this one
equals
in class java.lang.Object
obj
- The reference object with which to comparepublic java.lang.String toString()
It returns a raw string representation of a gene
toString
in class java.lang.Object