public class FuzzySingleton extends Fuzzy
Represents a singleton fuzzy set. A Fuzzy singleton is a fuzzy set whose support is a single point in U with a membership level of 1.0.
Constructor and Description |
---|
FuzzySingleton(double c)
A constructor for a singleton fuzzy set, given the point.
|
FuzzySingleton(FuzzySingleton b)
A copy constructor for a singleton fuzzy set, given other singleton fuzzy set.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
aString()
Returns a printable version of the instance.
|
Fuzzy |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(Fuzzy b)
Indicates whether some other object is "equal to" this one.
|
double |
evaluateMembership(double x)
Returns the membership level for the individual x.
|
double |
massCentre()
Returns the centroid of the present fuzzy number.
|
void |
set(FuzzySingleton b)
Copies the FuzzySingleton parameter over the present instance.
|
FuzzyInterval |
support()
Creates and returns a FuzzyInterval with unique point of the support set.
|
public FuzzySingleton(double c)
A constructor for a singleton fuzzy set, given the point.
c
- the single point of the fuzzy set.public FuzzySingleton(FuzzySingleton b)
A copy constructor for a singleton fuzzy set, given other singleton fuzzy set.
b
- to be copied.public boolean equals(Fuzzy b)
Indicates whether some other object is "equal to" this one.
public Fuzzy clone()
Creates and returns a copy of this object.
public void set(FuzzySingleton b)
Copies the FuzzySingleton parameter over the present instance.
b
- a FuzzySingleton object to be copiedpublic double evaluateMembership(double x)
Returns the membership level for the individual x.
evaluateMembership
in class Fuzzy
x
- the individual which membership is to be calculated.public double massCentre()
Returns the centroid of the present fuzzy number.
massCentre
in class Fuzzy
public FuzzyInterval support()
Creates and returns a FuzzyInterval with unique point of the support set.