Catalano.Fuzzy
Class LinguisticVariable
- java.lang.Object
-
- Catalano.Fuzzy.LinguisticVariable
-
public class LinguisticVariable extends java.lang.ObjectThe class represents a linguistic variable.
-
-
Constructor Summary
Constructors Constructor and Description LinguisticVariable(java.lang.String name, float start, float end)Initializes a new instance of the LinguisticVariable class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddLabel(FuzzySet label)Adds a linguistic label to the variable.voidClearLabels()floatgetEnd()Get right limit of the valid variable range.FuzzySetgetLabel(java.lang.String labelName)floatGetLabelMembership(java.lang.String labelName, float value)java.lang.StringgetName()Get name of the linguistic variable.floatgetNumericInput()Get numerical value of the input of this linguistic variable.floatgetStart()Get left limit of the valid variable range.voidsetNumericInput(float numericInput)Set numerical value of the input of this linguistic variable.
-
-
-
Constructor Detail
-
LinguisticVariable
public LinguisticVariable(java.lang.String name, float start, float end)Initializes a new instance of the LinguisticVariable class.- Parameters:
name- Name of the linguistic variable.start- Left limit of the valid variable range.end- Right limit of the valid variable range.
-
-
Method Detail
-
getNumericInput
public float getNumericInput()
Get numerical value of the input of this linguistic variable.- Returns:
- Value.
-
setNumericInput
public void setNumericInput(float numericInput)
Set numerical value of the input of this linguistic variable.- Parameters:
numericInput- Value.
-
getName
public java.lang.String getName()
Get name of the linguistic variable.- Returns:
- Name.
-
getStart
public float getStart()
Get left limit of the valid variable range.- Returns:
- Value.
-
getEnd
public float getEnd()
Get right limit of the valid variable range.- Returns:
- Value.
-
addLabel
public void addLabel(FuzzySet label)
Adds a linguistic label to the variable.- Parameters:
label- A FuzzySet that will be a linguistic label of the linguistic variable.
-
ClearLabels
public void ClearLabels()
-
getLabel
public FuzzySet getLabel(java.lang.String labelName)
-
GetLabelMembership
public float GetLabelMembership(java.lang.String labelName, float value)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG