Learn R Programming

FuzzyToolkitUoN (version 1.0)

gaussMF: Creates a gaussian membership function.

Description

Creates a single Gaussian curve.

Usage

gaussMF(mfName, x, mfParams)

Arguments

mfName
String representing the name for the membership function.
x
The range of the membership function as a vector, such as 1:10.
mfParams
The input parameters, this should be a vector of 3 numbers representing the sigma, mean and height.

Value

  • mfNameThe name of the membership function (String)
  • mfXA numeric vector representing the range of the variable.
  • mfParamsA numeric vector representing the given input parameters upon creation.
  • mfValsThe evaluated values for the membership function.

Details

To access the values: $mfParams for the stored parameters. $mfX for the stored range. $mfName for the stored name. $mfVals for the stored evaluated values. Where is the assigned name of the membership function in the environment.

Examples

Run this code
MyGaussian <<- gaussMF("MyMF", 0:10, c(1.5, 5, 1))

Run the code above in your browser using DataLab