public class FuzzyNumberTRIANG extends Fuzzy
Represents a triangular fuzzy number. The support member with membership value of 1.0 is the center and left and right represent the extremes of the triangular fuzzy number.
Constructor and Description |
---|
FuzzyNumberTRIANG(double l,
double c,
double r)
A constructor for a triangle fuzzy set, given the extremes.
|
FuzzyNumberTRIANG(FuzzyNumberTRIANG t)
A copy constructor for a triangular fuzzy number, given other triangular fuzzy number.
|
Modifier and Type | Method and Description |
---|---|
void |
Asigna(FuzzyNumberTRIANG t)
Copies the FuzzyNumberTRIANG parameter over the present instance.
|
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.
|
FuzzyInterval |
support()
Creates and returns a FuzzyInterval with the extremes of the support set.
|
public FuzzyNumberTRIANG(double l, double c, double r)
A constructor for a triangle fuzzy set, given the extremes.
l
- the lower extreme of the triangular fuzzy number.c
- the center element of the triangular fuzzy number.r
- the upper extreme of the triangular fuzzy number.public FuzzyNumberTRIANG(FuzzyNumberTRIANG t)
A copy constructor for a triangular fuzzy number, given other triangular fuzzy number.
t
- to be copied.public void Asigna(FuzzyNumberTRIANG t)
Copies the FuzzyNumberTRIANG parameter over the present instance.
t
- a FuzzyNumberTRIANG object to be copiedpublic 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 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 the extremes of the support set.