public class LinguisticVariable
extends java.lang.Object
| Constructor and Description |
|---|
LinguisticVariable(java.lang.String name,
float start,
float end)
Initializes a new instance of the LinguisticVariable class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(FuzzySet label)
Adds a linguistic label to the variable.
|
void |
ClearLabels() |
float |
getEnd()
Get right limit of the valid variable range.
|
FuzzySet |
getLabel(java.lang.String labelName) |
float |
GetLabelMembership(java.lang.String labelName,
float value) |
java.lang.String |
getName()
Get name of the linguistic variable.
|
float |
getNumericInput()
Get numerical value of the input of this linguistic variable.
|
float |
getStart()
Get left limit of the valid variable range.
|
void |
setNumericInput(float numericInput)
Set numerical value of the input of this linguistic variable.
|
public LinguisticVariable(java.lang.String name,
float start,
float end)
name - Name of the linguistic variable.start - Left limit of the valid variable range.end - Right limit of the valid variable range.public float getNumericInput()
public void setNumericInput(float numericInput)
numericInput - Value.public java.lang.String getName()
public float getStart()
public float getEnd()
public void addLabel(FuzzySet label)
label - A FuzzySet that will be a linguistic label of the linguistic variable.public void ClearLabels()
public FuzzySet getLabel(java.lang.String labelName)
public float GetLabelMembership(java.lang.String labelName,
float value)