evalmftype: Evaluate fuzzy membership function with membership function...

Description Usage Arguments Value Author(s) Examples

View source: R/FuzzyMF.R

Description

To obtain the corresponding membership grade(s) for crisp input(s) x

Usage

1
evalmftype(x, mf.type, mf.params)

Arguments

x

A generic element of U, which is the universe of discourse for a fuzzy set

mf.type

The member function type

mf.params

The parameters for a member function

Value

Membership grade(s)

Author(s)

Chao Chen

Examples

1
2
evalmftype(5, mf.type=gbellmf, mf.params=c(1,2,3))
evalmftype(1:10, mf.type=gbellmf, mf.params=c(1,2,3))

Example output

[1] 0.05882353
              [,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 evalmftype in FuzzyR...