Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.PiecewiseLinearFuzzyNumber

Converts an Object to a Piecewise Linear Fuzzy Number


Description

This method is only for exact conversion. For other cases (e.g. general FNs), use piecewiseLinearApproximation.

Usage

## S4 method for signature '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 signature '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 signature '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 signature 'PiecewiseLinearFuzzyNumber'
as.PiecewiseLinearFuzzyNumber(object, knot.n=0,
   knot.alpha=seq(0, 1, length.out=knot.n+2)[-c(1,knot.n+2)])

Arguments

object

a fuzzy number or a single numeric value (crisp number) or vector of length two (interval)

knot.n

the number of knots

knot.alpha

knot.n alpha-cut values at knots, defaults to uniformly distributed knots

Value

Returns an object of class PiecewiseLinearFuzzyNumber.

See Also


FuzzyNumbers

Tools to Deal with Fuzzy Numbers

v0.4-6
LGPL (>= 3)
Authors
Marek Gagolewski [aut, cre], Jan Caha [ctb]
Initial release
2019-02-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.