View source: R/fuzzification.R
fuzzify_crisp_vector | R Documentation |
Converts a numeric vector into a list of fuzzified values using a triangular fuzzy membership function.
fuzzify_crisp_vector(crisp_vector, spread = 1, var_name = "Outcome")
crisp_vector |
A numeric vector to be fuzzified. |
spread |
A non-negative numeric value specifying the spread for the fuzzy membership function. |
var_name |
Optional. A character string specifying a common name for all fuzzified values. Default is |
A list of fuzzified values, where each value is represented as a list with components l
, x
, and r
.
crisp_vector <- c(10, 20, 30)
fuzzify_crisp_vector(crisp_vector, spread = 1, var_name = "Variable")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.