View source: R/FuzzyApproximation.R
FuzzyApproximation | R Documentation |
FuzzyApproximation
approximates the given fuzzy number.
FuzzyApproximation(value, method = "ExpectedValueCore", ...)
value |
Fuzzy number to approximate. |
method |
The selected approximation method. |
... |
Additional parameters passed to other functions (like approximation method from the FuzzyNumbers package). |
The function approximates the fuzzy number given by value
with the method selected by
method
. The following approximations are possible: ExpectedValueCore
–preserving the
expected value and the core of value
, TriangularSupportDist
–constructs the
triangular fuzzy number based on minimization of DpqDistance
, preserving the support of value
,
and the approximation methods from the FuzzyNumbers package (namely: Naive, NearestEuclidean, ExpectedIntervalPreserving,
SupportCoreRestricted
).
The input value should be given by a fuzzy number described by classes from FuzzyNumbers
package.
The output is a fuzzy number (triangular or trapezoidal one) described by
classes from FuzzyNumbers
package.
library(FuzzyNumbers)
# prepare complex fuzzy number
A <- FuzzyNumber(-5, 3, 6, 20, left=function(x)
pbeta(x,0.4,3),
right=function(x) 1-x^(1/4),
lower=function(alpha) qbeta(alpha,0.4,3),
upper=function(alpha) (1-alpha)^4)
# find approximation
FuzzyApproximation (A)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.