FuzzyCompositeTerm(terms)

Base class for representing more complex fuzzy terms based on the composite design pattern.

new FuzzyCompositeTerm(terms)

Constructs a new fuzzy composite term with the given values.

Parameters:
Name Type Description
terms Array.<FuzzyTerm>

An arbitrary amount of fuzzy terms.

Author:

Extends

Members

terms :Array.<FuzzyTerm>

List of fuzzy terms.

Methods

clearDegreeOfMembership() → {FuzzyCompositeTerm}

Clears the degree of membership value.

Returns:
FuzzyCompositeTerm -

A reference to this term.

Overrides:

getDegreeOfMembership() → {Number}

Returns the degree of membership.

Returns:
Number -

Degree of membership.

Overrides:

toJSON() → {Object}

Transforms this instance into a JSON object.

Returns:
Object -

The JSON object.

Overrides:

updateDegreeOfMembership(value) → {FuzzyCompositeTerm}

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:
FuzzyCompositeTerm -

A reference to this term.

Overrides: