public class FuzzyInterval extends Fuzzy
Represents an interval fuzzy set. Each member of a interval fuzzy set has membership value of 1.0.
Constructor and Description |
---|
FuzzyInterval(double pa,
double pb)
A constructor for an interval fuzzy set, given the extremes.
|
FuzzyInterval(FuzzyInterval pa)
A copy constructor for an interval fuzzy set, given other interval fuzzy set.
|
Modifier and Type | Method and Description |
---|---|
double |
a()
Returns the lower extreme of the interval fuzzy set.
|
void |
Asigna(FuzzyInterval pa)
Copies the FuzzyInterval parameter over the present instance.
|
java.lang.String |
aString()
Returns a printable version of the instance.
|
double |
b()
Returns the upper extreme of the interval fuzzy set.
|
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 interval fuzzy set.
|
FuzzyInterval |
support()
Creates and returns a FuzzyInterval with the extremes of the support set.
|
public FuzzyInterval(double pa, double pb)
A constructor for an interval fuzzy set, given the extremes.
pa
- the lower extreme of the interval fuzzy set.pb
- the upper extreme of the interval fuzzy set.public FuzzyInterval(FuzzyInterval pa)
A copy constructor for an interval fuzzy set, given other interval fuzzy set.
pa
- to be copied.public double a()
Returns the lower extreme of the interval fuzzy set.
public double b()
Returns the upper extreme of the interval fuzzy set.
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 Asigna(FuzzyInterval pa)
Copies the FuzzyInterval parameter over the present instance.
pa
- a FuzzyInterval 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 interval fuzzy set.
massCentre
in class Fuzzy
public FuzzyInterval support()
Creates and returns a FuzzyInterval with the extremes of the support set.