fuzzyfy: Write a crisp number as a fuzzy number

View source: R/fuzzyfy.R

fuzzyfyR Documentation

Write a crisp number as a fuzzy number

Description

This function creates a fuzzy number of class fzn from a crisp numeric value, using as membership function the characteristic function of the number. Moreover, it can build an object of class fzarray from a numeric array.

Usage

fuzzyfy(x)

Arguments

x

A numeric value (or array or matrix), or a fuzzy number of class fzn, or a fuzzy array of class fzarray. If x is of class fzn or fzarray then the function fuzzyfy returns x.

Value

A fzn object corresponding to the crisp number x.

Examples

x <- fuzzyfy(3)
plotfzn(x)
xarray <- fuzzyfy(c(3, 4))


rbensua/fuzzyr documentation built on May 20, 2023, 7:11 a.m.