evalMF: Evaluation of a membership function.

Description Usage Arguments Value Author(s) Examples

View source: R/FuzzyToolkitUoN.R

Description

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

Usage

1
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

Returns a numeric vector containing the values of an evaluated membership function.

Author(s)

Craig Knott, Luke Hovell, Nathan Karimian.

Examples

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

Example output

Loading required package: splines

FuzzyToolkitUoN documentation built on May 2, 2019, 5:50 a.m.