FuzzyTerm()

Base class for representing a term in a FuzzyRule.

new FuzzyTerm()

Author:

Methods

clearDegreeOfMembership() → {FuzzyTerm}

Clears the degree of membership value.

Returns:
FuzzyTerm -

A reference to this term.

getDegreeOfMembership() → {Number}

Returns the degree of membership.

Returns:
Number -

Degree of membership.

toJSON() → {Object}

Transforms this instance into a JSON object.

Returns:
Object -

The JSON object.

updateDegreeOfMembership(value) → {FuzzyTerm}

Updates the degree of membership by the given value. This method is used when the term is part of a fuzzy rule's consequent.

Parameters:
Name Type Description
value Number

The value used to update the degree of membership.

Returns:
FuzzyTerm -

A reference to this term.