net.sourceforge.jfl.core
Interface IFuzzySet<T>

Type Parameters:
T - the type of the elements stored in the FuzzySet.
All Known Subinterfaces:
IFuzzyRelationship<T>
All Known Implementing Classes:
DiscreteFuzzySet, DoubleInterpolatedFuzzySet

public interface IFuzzySet<T>

A fuzzy set is a generalization of a crisp set. Basically you can think about a fuzzy set as a crisp set having a carachteristic function having values in [0, 1] interaval instead of {0, 1} set.

Author:
vm_tbp, arons777@users.sourceforge.net

Method Summary
 IFuzzySet<T> and(IFuzzySet<T> anotherSet)
          Performs a fuzzy logic and between this fuzzy set and the given one
 IFuzzySet<T> complement()
          Return a fuzzy set represents the complentary of the set.
 java.lang.String getLabel()
          Returns the label of this fuzzy set.
 double getMembership(T element)
          returns the membership value of the provided element to this IFuzzySet.
 java.util.Set<T> getSupport()
          Gets the fuzzy set support or, in other words, all the elements with non zero membership value.
 java.util.Set<Interval> getSupportIntervals()
          Gets the fuzzy set support or, in other words, all the elements with non zero membership value.
 IFuzzySet<T> or(IFuzzySet<T> anotherSet)
          Performs a fuzzy logic or between this fuzzy set and the given one
 void setLabel(java.lang.String label)
          Sets this fuzzy set label.
 

Method Detail

getMembership

double getMembership(T element)
returns the membership value of the provided element to this IFuzzySet.

Parameters:
element - the element of which we want the membership value for this IFuzzySet
Returns:
the membership value of the queried element

getSupport

java.util.Set<T> getSupport()
Gets the fuzzy set support or, in other words, all the elements with non zero membership value.

Returns:
the fuzzy set support, null if is not possible to return the support as a set.

getSupportIntervals

java.util.Set<Interval> getSupportIntervals()
Gets the fuzzy set support or, in other words, all the elements with non zero membership value.

Returns:
the fuzzy set support intervals, null if is not possible to return the support as interval.

setLabel

void setLabel(java.lang.String label)
Sets this fuzzy set label. A fuzzy set label is just an human readable name for the fuzzy set.

Parameters:
label - the label to set

getLabel

java.lang.String getLabel()
Returns the label of this fuzzy set.

Returns:
the label of this fuzzy set.

complement

IFuzzySet<T> complement()
Return a fuzzy set represents the complentary of the set.

Returns:
the fuzzy set represents the complentary of the set.

and

IFuzzySet<T> and(IFuzzySet<T> anotherSet)
Performs a fuzzy logic and between this fuzzy set and the given one

Parameters:
anotherSet - the fuzzy set to perform the fuzzy logic and with
Returns:
the fuzzy set resulting from the and between this fuzzy set and the given one.

or

IFuzzySet<T> or(IFuzzySet<T> anotherSet)
Performs a fuzzy logic or between this fuzzy set and the given one

Parameters:
anotherSet - the fuzzy set to perform the fuzzy logic or with
Returns:
the fuzzy set resulting from the or between this fuzzy set and the given one.


Copyright © 2000 Dummy Corp. All Rights Reserved.