Learn R Programming

set6 (version 0.1.1)

alphaCut: Get Elements in FuzzySet with Membership Greater than Alpha

Description

The alpha-cut of a fuzzy set is defined as the set $$A_\alpha = \{x \epsilon F | m \ge \alpha\}$$ where \(x\) is an element in the fuzzy set, \(F\), and \(m\) is the corresponding membership.

Arguments

alpha

numeric in [0, 1] to determine which elements to return

strong

logical, if FALSE (default) then includes elements greater than or equal to alpha, otherwise only strictly greater than

create

logical, if FALSE (default) returns the elements in the alpha cut, otherwise returns a crisp set of the elements

Value

Elements in FuzzySet or a Set of the elements.

R6 Usage

$alphaCut(alpha, strong = FALSE, create = FALSE)

See Also

support, core

Examples

Run this code
# NOT RUN {
f = FuzzySet$new(1, 0.1, 2, 0.5, 3, 1)
# Alpha-cut
f$alphaCut(0.5)

# Strong alpha-cut
f$alphaCut(0.5, strong = TRUE)

# Create a set from the alpha-cut
f$alphaCut(0.5, create = TRUE)
# }

Run the code above in your browser using DataLab