Learn R Programming

fsr (version 1.0.0)

fsr_eval_modes: Evaluation modes

Description

This family of functions implements evaluation modes that returns a Boolean value for a given degree in [0, 1] obtained from a membership function of a linguistic value.

Usage

soft_eval(degree)

strict_eval(degree)

alpha_eval(degree, alpha)

soft_alpha_eval(degree, alpha)

Arguments

degree

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

alpha

A single numeric value in [0, 1].

Value

A Boolean vector.

Details

These functions yield a Boolean value that express the meaning of a degree returning from an evaluation of a membership function. That is, the parameter degree is a value in [0, 1] resulting from evaluation a value in a membership degree. Then, an evaluation mode "translate" the meaning of this degree of truth as a Boolean value.

There some different ways to make this kind of translation:

  • soft_eval: It returns TRUE if degree is greater than 0.

  • strict_eval: It returns TRUE if degree is equal to 0.

  • alpha_eval: It returns TRUE if degree is greater than or equal to another value (named alpha).

  • soft_alpha_eval: It returns TRUE if degree is greater than another value (named alpha).

These operators are employed to process the evaluation modes of fuzzy topological relationships that are processed as Boolean predicates.

Examples

Run this code
# NOT RUN {
x <- c(0.1, 0.3, 0.6, 0.8)

soft_eval(x)
strict_eval(x)
alpha_eval(x, 0.3)
soft_alpha_eval(x, 0.3)

# }

Run the code above in your browser using DataLab