genmf: Fuzzy membership function generator

Description Usage Arguments Details Value Author(s) Examples

View source: R/FuzzyMF.R

Description

To generate the corresponding membership function f(x), also called fuzzy set, according to type and parameters

Usage

1
genmf(mf.type, mf.params)

Arguments

mf.type

The membership function type

mf.params

The parameters for a membership function

Details

Built-in membership function types are: 'gbellmf', 'it2gbellmf', 'singletonmf', 'linearmf', 'gaussmf', 'trapmf', 'trimf'.

mf.params for

Note that users are able to define their own membership functions.

Value

The desired type of membership function f(x), where x is a generic element of U, which is the universe of discourse for a fuzzy set

Author(s)

Chao Chen

Examples

1
2
mf <- genmf('gbellmf', c(1,2,3))
evalmf(1:10, mf)

Example output

              [,1]
 [1,] 0.0588235294
 [2,] 0.5000000000
 [3,] 1.0000000000
 [4,] 0.5000000000
 [5,] 0.0588235294
 [6,] 0.0121951220
 [7,] 0.0038910506
 [8,] 0.0015974441
 [9,] 0.0007710100
[10,] 0.0004163197

FuzzyR documentation built on May 19, 2021, 9:06 a.m.

Related to genmf in FuzzyR...