public class TskTermType extends TskTerm
Java class for tskTermType complex type.
<complexType name="tskTermType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="tskValue" type="{http://www.w3.org/2001/XMLSchema}float" maxOccurs="unbounded"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" /> <attribute name="order" use="required" type="{http://www.ieee1855.org}tskOrderType" /> </restriction> </complexContent> </complexType>
Constructor and Description |
---|
TskTermType()
Default constructor
|
TskTermType(java.lang.String name,
int order,
float[] coeff)
Constructor using the name, the order and a list of coefficients (c, a, b, ...)
|
Modifier and Type | Method and Description |
---|---|
TskTermType |
copy()
Creates a copy of the term
|
void |
evaluateTskTerm(java.util.List<FuzzyVariable> list)
Evalutates the TSKterm considering the list of variables of the KnowledgeBase
|
float |
getMembershipValue(float x)
Gets the membership degree by calculating the membership value of the parameter x to this term
|
java.lang.String |
getName()
Gets the value of the property name.
|
int |
getOrder()
Gets the value of the property order.
|
java.util.List<java.lang.Float> |
getTskValue()
Gets the value of the tskValue property.
|
void |
setName(java.lang.String value)
Sets the value of the property name.
|
void |
setOrder(int value)
Sets the value of the property order.
|
java.lang.String |
toString() |
getEvaluation, reset, setEvaluation
public TskTermType()
public TskTermType(java.lang.String name, int order, float[] coeff)
name
- the name of the TSK termorder
- the order of the TSK term (0 or 1)coeff
- a list of coefficients (c, a, b, ...) : z = c + av1 + bv2 + ... mvnpublic java.util.List<java.lang.Float> getTskValue()
Objects of the following type(s) are allowed in the list
Float
public java.lang.String getName()
public void setName(java.lang.String value)
value
- allowed object is
String
public int getOrder()
public void setOrder(int value)
public java.lang.String toString()
toString
in class java.lang.Object
public void evaluateTskTerm(java.util.List<FuzzyVariable> list)
TskTerm
evaluateTskTerm
in class TskTerm
list
- list of variables of the KnowledgeBasepublic TskTermType copy()
Term
public float getMembershipValue(float x)
Term
getMembershipValue
in class Term
x
- the value x