fsr_diff_operators {fsr}R Documentation

Compute fuzzy difference operators

Description

Fuzzy difference operations are set operations that generalize Boolean difference operations. This family of functions implements some operators that help us to define different fuzzy difference operations. These operators receive two numerical values in [0, 1] as input and calculates another numerical value in [0, 1] as output.

Usage

f_diff(x, y)

f_bound_diff(x, y)

f_symm_diff(x, y)

f_abs_diff(x, y)

Arguments

x

A numerical vector whose values are in [0, 1].

y

A numerical vector whose values are in [0, 1].

Details

These functions calculate the resulting membership degree of a fuzzy difference operator applied on two numerical values in the interval [0, 1]. The following fuzzy difference operators are available:

The name of these functions can be used in the parameter dtype of the spa_difference() function.

Value

A numerical vector.

Examples

x <- c(0.1, 0.3, 0.6, 0.8)
y <- c(0.9, 0.7, 0.4, 0.2)

f_diff(x, y)
f_bound_diff(x, y)
f_symm_diff(x, y)
f_abs_diff(x, y)

[Package fsr version 2.0.1 Index]