public class Fuzzy
extends java.lang.Object
implements java.lang.Comparable
Title: Fuzzy
Description: This class contains the representation of a fuzzy value
Copyright: Copyright KEEL (c) 2007
Company: KEEL
Constructor and Description |
---|
Fuzzy()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Fuzzy |
clone()
It makes a copy for the object
|
int |
compareTo(java.lang.Object a)
Compares this object with the specified object for order, according to the number of label measure
|
boolean |
equals(java.lang.Object o)
Compares this fuzzy label with another fuzzy label to check if both fuzzy labels are equal
|
double |
Fuzzify(double X)
If fuzzyfies a crisp value
|
int |
hashCode()
Computes the hash code associated to the current fuzzy label
|
void |
lateralDisplace(double displacement)
Modifies the current fuzzy value according to a provided lateral displacement
|
public double Fuzzify(double X)
X
- double The crips valuepublic void lateralDisplace(double displacement)
displacement
- Real value that contains the lateral displacement that needs to be applied to the fuzzy labelpublic Fuzzy clone()
clone
in class java.lang.Object
public int compareTo(java.lang.Object a)
compareTo
in interface java.lang.Comparable
a
- Objecto to compare with.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- fuzzy label that is going to be compared with the current fuzzy labelpublic int hashCode()
hashCode
in class java.lang.Object