simplify | R Documentation |
Simplify a fuzzy number of class fzn
or a fuzzy array of class fzarray
.
It eliminates unnecessary alpha-cuts.
simplify(x,
abstol = 1e-6)
x |
A fuzzy number of class |
abstol |
Absolute tolerance for simplifying. By default, it is 1e-6. |
It returns a fuzzy number of class fzn
or a fuzzy array of class fzarray
.
x <- fzn(alpha = c(0, 0.2, 0.5, 0.8, 1),
l = c(-1, 0, 1, 2, 3),
u = c(8, 7, 6, 5, 4),
interp = "approx")
x2 <- simplify(x)
xx <- fzn(alpha = c(0, 0.2, 0.5, 0.8, 1),
l = c(-1, 0, 1, 2, 3),
u = c(8, 7, 6, 5, 4),
interp = "spline")
xx2 <- simplify(xx)
# For a sufficiently large abstol, it returns a trapezoidal (or triangular) fuzzy number:
x3 <- simplify(x, abstol = 0.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.