jm.music.tools.fuzzy

## Class FuzzySet

- java.lang.Object
- - jm.music.tools.fuzzy.FuzzySet

-     public class FuzzySet
      extends java.lang.Object

  This class describes a fuzzy set that contains one or more fuzzy numbers. FuzzyNumber objects can be added to the set with the add method. Defuzzification output uses the centriod scheme and is provided by the getOutput method.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FuzzySet()` Constructs an empty fuzzy set.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(FuzzyNumber fNumb)` Add a fuzzy number object to the set.
    `double` | `getOutput(double input)` Computes the real-valued fuzzy centroid (centre of gravity) as a non-normalised average of the degree of membership in each fuzzy number.
    `void` | `remove(FuzzyNumber fNumb)` Remove a fuzzy number object from the set.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FuzzySet

          public FuzzySet()

      Constructs an empty fuzzy set.

  - ### Method Detail

    - #### add

          public void add(FuzzyNumber fNumb)

      Add a fuzzy number object to the set.

    - #### remove

          public void remove(FuzzyNumber fNumb)

      Remove a fuzzy number object from the set.

    - #### getOutput

          public double getOutput(double input)

      Computes the real-valued fuzzy centroid (centre of gravity) as a non-normalised average of the degree of membership in each fuzzy number.
      Parameters:
        `input` - - The number for which the fuzzy rules are to be applied.