public class Gene
extends java.lang.Object
It is used for representing and handling a gene throughout the evolutionary learning
Constructor and Description |
---|
Gene(MembershipFunction[] membership_functions)
It creates a new gene by setting up its membership functions
|
Modifier and Type | Method and Description |
---|---|
double |
calculateCoverageFactor(double min_attr,
double max_attr)
It computes the coverage factor for the membership functions involved in a gene
|
double |
calculateOverlapFactor()
It computes the overlap factor for the membership functions involved in a gene
|
Gene |
clone()
It allows to clone correctly a gene
|
MembershipFunction[] |
getMembershipFunctions()
It returns the membership functions of a gene
|
void |
sortMembershipFunctions()
It orders the membership functions involved in a gene
|
java.lang.String |
toString()
It returns a raw string representation of a gene
|
public Gene(MembershipFunction[] membership_functions)
It creates a new gene by setting up its membership functions
membership_functions
- The membership functions to set up for the genepublic MembershipFunction[] getMembershipFunctions()
It returns the membership functions of a gene
public double calculateOverlapFactor()
public double calculateCoverageFactor(double min_attr, double max_attr)
min_attr
- The minimum domain value depending on the attribute being consideredmax_attr
- The maximum domain value depending on the attribute being consideredpublic void sortMembershipFunctions()
It orders the membership functions involved in a gene
public Gene clone()
It allows to clone correctly a gene
clone
in class java.lang.Object
public java.lang.String toString()
It returns a raw string representation of a gene
toString
in class java.lang.Object