addMF: Insert a membership function.

Description Usage Arguments Value Author(s) Examples

Description

Adds a membership function to a variable of a FIS object.

Usage

1
addMF(FIS, varType, varIndex, mf)

Arguments

FIS

A FIS structure is to be provided.

varType

Should be either 'input' or 'output', which relates to the type of variable (stored on the existing FIS structure) that the membership function will be added to.

varIndex

Should be an integer value representing the index value of the input or output variable that the membership function will be added to (base 1).

mf

The membership function to be stored in the specified location on the given FIS structure.

Value

A FIS structure with the new membership function added.

Author(s)

Craig Knott, Luke Hovell, Nathan Karimian

Examples

1
2
3
4
MF <<- gaussMF("myMF", 0:10, c(1.5,5,1))
FIS <<- newFIS("MyFIS")
FIS <<- addVar(FIS, "input", "variableName", 0:10)
FIS <<- addMF(FIS, "input", 1, MF)

Example output

Loading required package: splines

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