Creates a triangular membership function object.

1 | ```
triMF(mfName, x, mfParams)
``` |

`mfName` |
String representing the name. |

`x` |
The range, should be a numerical vector such as 1:10 |

`mfParams` |
The input parameters, which should be a 4 number vector representing the left, mean, right and height. |

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.

`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, mean, right and height. |

`mfVals` |
The evaluated values for the membership function. |

Craig Knott, Luke Hovell, Nathan Karimian

1 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.