Learn R Programming

set6 (version 0.1.1)

inclusion: Get Inclusion Level of Element In FuzzySet

Description

An element in a fuzzy set, with corresponding membership \(m\), is:

  • Included - If \(m = 1\)

  • Partially Included - If \(0 < m < 1\)

  • Not Included - If \(m = 0\)

Arguments

element

element or list of elements in fuzzy set for which to get the inclusion level

Value

One of: "Included", "Partially Included", "Not Included"

R6 Usage

$inclusion(element)

Details

For FuzzySets this is straightforward and returns the inclusion level of the given element(s), however in FuzzyTuples when an element may be duplicated, the function returns the inclusion level of all instances of the element.

Examples

Run this code
# NOT RUN {
f = FuzzySet$new(0.1, 0, 1, 0.1, 2, 0.5, 3, 1)
f$inclusion(0.1)
f$inclusion(1)
f$inclusion(3)
# }

Run the code above in your browser using DataLab