Learn R Programming

FuzzyR (version 2.2)

evalmf: Evaluate fuzzy membership function

Description

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

Usage

evalmf(...)

Arguments

...

This function has accepted these arguments namely; x, mf.type, mf.params and mf. See the explanation on details section.

Value

Membership grade(s)

Details

This function involved such as these arguments:

x - A generic element of U, which is the universe of discourse for a fuzzy set mf.type - The type of fuzzy membership function mf.params - The parameters for the given type of membership function mf - the membership function generated by genmf

This function can be used in two ways in order to obtain the membership grade(s) (see the examples section) : 1. evalmf(x, mf.type, mf.params) 2. evalmf(x,mf)

Examples

Run this code
# NOT RUN {
evalmf(5, mf.type=gbellmf, mf.params=c(1,2,3))
evalmf(1:10, mf.type=gbellmf, mf.params=c(1,2,3))

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

Run the code above in your browser using DataLab