This method is only for exact conversion.
For other cases (e.g. general FNs), use
piecewiseLinearApproximation
.
# S4 method for TrapezoidalFuzzyNumber
as.PiecewiseLinearFuzzyNumber(object, knot.n=0,
knot.alpha=seq(0, 1, length.out=knot.n+2)[-c(1,knot.n+2)])# S4 method for numeric
as.PiecewiseLinearFuzzyNumber(object, knot.n=0,
knot.alpha=seq(0, 1, length.out=knot.n+2)[-c(1,knot.n+2)])
# S4 method for FuzzyNumber
as.PiecewiseLinearFuzzyNumber(object, knot.n=0,
knot.alpha=seq(0, 1, length.out=knot.n+2)[-c(1,knot.n+2)])
# S4 method for PiecewiseLinearFuzzyNumber
as.PiecewiseLinearFuzzyNumber(object, knot.n=0,
knot.alpha=seq(0, 1, length.out=knot.n+2)[-c(1,knot.n+2)])
a fuzzy number or a single numeric value (crisp number) or vector of length two (interval)
the number of knots
knot.n
alpha-cut values at knots,
defaults to uniformly distributed knots
Other TrapezoidalFuzzyNumber-method:
Arithmetic
,
TrapezoidalFuzzyNumber-class
,
TrapezoidalFuzzyNumber
,
TriangularFuzzyNumber()
,
alphaInterval()
,
as.PowerFuzzyNumber()
,
as.TrapezoidalFuzzyNumber()
,
expectedInterval()
,
plot()
Other PiecewiseLinearFuzzyNumber-method:
Arithmetic
,
Extract
,
PiecewiseLinearFuzzyNumber-class
,
PiecewiseLinearFuzzyNumber
,
^,PiecewiseLinearFuzzyNumber,numeric-method
,
alphaInterval()
,
arctan2()
,
as.PowerFuzzyNumber()
,
as.TrapezoidalFuzzyNumber()
,
as.character()
,
expectedInterval()
,
fapply()
,
maximum()
,
minimum()
,
necessityExceedance()
,
necessityStrictExceedance()
,
necessityStrictUndervaluation()
,
necessityUndervaluation()
,
plot()
,
possibilityExceedance()
,
possibilityStrictExceedance()
,
possibilityStrictUndervaluation()
,
possibilityUndervaluation()
Other FuzzyNumber-method:
Arithmetic
,
Extract
,
FuzzyNumber-class
,
FuzzyNumber
,
alphaInterval()
,
alphacut()
,
ambiguity()
,
as.FuzzyNumber()
,
as.PowerFuzzyNumber()
,
as.TrapezoidalFuzzyNumber()
,
as.character()
,
core()
,
distance()
,
evaluate()
,
expectedInterval()
,
expectedValue()
,
integrateAlpha()
,
piecewiseLinearApproximation()
,
plot()
,
show()
,
supp()
,
trapezoidalApproximation()
,
value()
,
weightedExpectedValue()
,
width()
Other conversion:
as.FuzzyNumber()
,
as.PowerFuzzyNumber()
,
as.TrapezoidalFuzzyNumber()
,
as.character()