gaussbMF: Create a gaussian bell membership function.

Description Usage Arguments Details Value Author(s) Examples

View source: R/FuzzyToolkitUoN.R

Description

Creates two Gaussian Bell curves with different parameters and merges them.

Usage

1
gaussbMF(mfName, x, mfParams)

Arguments

mfName

A string representing the name of the membership function.

x

The range of the membership function as a vector, such as 1:10.

mfParams

The input parameters of the membership function. This should be a vector of 5 numbers representing the left sigma, left mean, right sigma, right 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. These should be the left sigma, left mean, right sigma, right mean and height.

mfVals

The evaluated values for the membership function.

Author(s)

Craig Knott, Luke Hovell, Nathan Karimian

Examples

1
MyGaussianBell <<- gaussbMF("MyMF", 0:10, c(2,3,3,2,1))

Example output

Loading required package: splines

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