Learn R Programming

FuzzyToolkitUoN (version 1.0)

evalMF: Evaluation of a membership function.

Description

Evaluates a membership function dependent on the function type to return plottable values.

Usage

evalMF(x, mfParams, mfType)

Arguments

x
The variable range, numeric vector.
mfParams
The input parameters that will be used with a membership function. They should be in a numeric vector which is the same length as required by the membership function's mfParams.
mfType
The type of the membership function, a string that can be either 'gaussMF', 'gaussbMF', 'triMF', or 'trapMF'.

Value

    Examples

    Run this code
    Values <<- evalMF(1:10, c(1.5, 5, 1), "gaussMF")

    Run the code above in your browser using DataLab