public class FuzzyNumberTRLEFT extends Fuzzy
Represents a right-angled triangular fuzzy number with the right-angle in left side. Each support member lower than center has the membership value of 1.0 and right represent the extreme of the triangular fuzzy number.
Constructor and Description |
---|
FuzzyNumberTRLEFT(double c,
double r)
A constructor for a left right-angled triangle fuzzy number, given the extremes.
|
FuzzyNumberTRLEFT(FuzzyNumberTRLEFT b)
A copy constructor for a left right-angled triangle fuzzy number, given other left right-angled triangle fuzzy number.
|
Modifier and Type | Method and Description |
---|---|
void |
Asigna(FuzzyNumberTRLEFT b)
Copies the FuzzyNumberTRLEFT 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 FuzzyNumberTRLEFT(double c, double r)
A constructor for a left right-angled triangle fuzzy number, given the extremes.
c
- the center element of the triangular fuzzy number.r
- the upper extreme of the triangular fuzzy number.public FuzzyNumberTRLEFT(FuzzyNumberTRLEFT b)
A copy constructor for a left right-angled triangle fuzzy number, given other left right-angled triangle fuzzy number.
b
- to be copied.public void Asigna(FuzzyNumberTRLEFT b)
Copies the FuzzyNumberTRLEFT parameter over the present instance.
b
- a FuzzyNumberTRLEFT 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.