Creates a gaussian membership function.

Description

Creates a single Gaussian curve.

Usage

1
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.

Details

To access the values:

<n>$mfParams for the stored parameters.

<n>$mfX for the stored range.

<n>$mfName for the stored name.

<n>$mfVals for the stored evaluated values.

Where <n> is the assigned name of the membership function in the environment.

Value

mfName

The name of the membership function (String)

mfX

A numeric vector representing the range of the variable.

mfParams

A numeric vector representing the given input parameters upon creation.

mfVals

The evaluated values for the membership function.

Author(s)

Craig Knott, Luke Hovell, Nathan Karimian

Examples

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