public class fuzzy_t
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MISSING
Defines a trapezoidal fuzzy set type
|
Constructor and Description |
---|
fuzzy_t()
Default Constructor
|
fuzzy_t(double a,
double b,
double c,
double d,
java.lang.String name)
Constructor
[a,b,c,d] represents a trapezoidal label and "name" is the name of the label.
|
fuzzy_t(double a,
double b,
double c,
double d,
java.lang.String name,
boolean menos,
boolean mas)
Constructor
[a,b,c,d] represents a trapezoidal label and "name" is the name of the label.
|
fuzzy_t(fuzzy_t x)
Creates a fuzzy_t object as a copy of "x"
|
Modifier and Type | Method and Description |
---|---|
double |
Adaptation(double x)
Returns the adaptation degree of a value x to the label.
|
double |
Area()
Returns the area of the label.
|
double |
CenterLabel()
Returns the central value of the label
|
fuzzy_t |
FuzzyLabel()
Returns a fuzzy_t object with the label
|
boolean |
IsDiscrete()
Returns if the fuzzy label represents a crisp value
|
boolean |
IsFuzzy()
Returns if the fuzzy label represents a fuzzy set
|
boolean |
IsInterval()
Returns if the fuzzy label represents an interval
|
void |
Print()
Prints in the standard output the name of the label
|
void |
PrintDefinition()
Prints in the standard output the definition of the label
|
java.lang.String |
PrintDefinitionToString()
Prints in a String the definition of the label
|
void |
Set(double a,
double b,
double c,
double d,
java.lang.String name)
Assigns a label
[a,b,c,d] represents a trapezoidal label and "name" is the name of the label.
|
void |
Set(double a,
double b,
double c,
double d,
java.lang.String name,
boolean menos,
boolean mas)
Assigns a label
[a,b,c,d] represents a trapezoidal label and "name" is the name of the label.
|
java.lang.String |
SPrint()
Prints in a String the name of the label
|
public static final int MISSING
Defines a trapezoidal fuzzy set type
public fuzzy_t()
Default Constructor
public fuzzy_t(double a, double b, double c, double d, java.lang.String name)
Constructor [a,b,c,d] represents a trapezoidal label and "name" is the name of the label. It is assumed by defect that the extremes are delimited.
a
- double Parameter a for the trapezoidal fuzzy setb
- double Parameter b for the trapezoidal fuzzy setc
- double Parameter c for the trapezoidal fuzzy setd
- double Parameter d for the trapezoidal fuzzy setname
- String Name for the fuzzy setpublic fuzzy_t(double a, double b, double c, double d, java.lang.String name, boolean menos, boolean mas)
Constructor [a,b,c,d] represents a trapezoidal label and "name" is the name of the label. "menos" and "mas" represents if the extremes are delimited or not.
a
- double Parameter a for the trapezoidal fuzzy setb
- double Parameter b for the trapezoidal fuzzy setc
- double Parameter c for the trapezoidal fuzzy setd
- double Parameter d for the trapezoidal fuzzy setname
- String Name for the fuzzy setmenos
- boolean TRUE if the negative extreme is delimited. FALSE otherwisemas
- boolean TRUE if the positive extreme is delimited. FALSE otherwisepublic fuzzy_t(fuzzy_t x)
Creates a fuzzy_t object as a copy of "x"
x
- fuzzy_t The object used to created the new onepublic void Set(double a, double b, double c, double d, java.lang.String name, boolean menos, boolean mas)
Assigns a label [a,b,c,d] represents a trapezoidal label and "name" is the name of the label. "menos" and "mas" represents if the extremes are delimited or not.
a
- double Parameter a for the trapezoidal fuzzy setb
- double Parameter b for the trapezoidal fuzzy setc
- double Parameter c for the trapezoidal fuzzy setd
- double Parameter d for the trapezoidal fuzzy setname
- String Name for the fuzzy setmenos
- boolean TRUE if the negative extreme is delimited. FALSE otherwisemas
- boolean TRUE if the positive extreme is delimited. FALSE otherwisepublic void Set(double a, double b, double c, double d, java.lang.String name)
Assigns a label [a,b,c,d] represents a trapezoidal label and "name" is the name of the label. It is assumed by defect that the extremes are delimited.
a
- double Parameter a from the trapezoidal fuzzy setb
- double Parameter b from the trapezoidal fuzzy setc
- double Parameter c from the trapezoidal fuzzy setd
- double Parameter d from the trapezoidal fuzzy setname
- String Name of the fuzzy setpublic double Adaptation(double x)
Returns the adaptation degree of a value x to the label.
x
- double The valuepublic java.lang.String PrintDefinitionToString()
Prints in a String the definition of the label
public void PrintDefinition()
Prints in the standard output the definition of the label
public void Print()
Prints in the standard output the name of the label
public java.lang.String SPrint()
Prints in a String the name of the label
public fuzzy_t FuzzyLabel()
Returns a fuzzy_t object with the label
public double CenterLabel()
Returns the central value of the label
public boolean IsDiscrete()
Returns if the fuzzy label represents a crisp value
public boolean IsInterval()
Returns if the fuzzy label represents an interval
public boolean IsFuzzy()
Returns if the fuzzy label represents a fuzzy set
public double Area()
Returns the area of the label.