cuts.to.PLFN {Sim.PLFN} | R Documentation |
Convert cuts to Piecewise Linear Fuzzy Number
Description
This function can easily covert a cuts matrix into a Piecewise Linear Fuzzy Number.
Usage
cuts.to.PLFN(cuts)
Arguments
cuts |
A matrices, with knot.n raw and 2 column, which contains all information about a Piecewise Linear Fuzzy Number. |
Value
This function returned a Piecewise Linear Fuzzy Number.
References
Gagolewski, M., Caha, J. (2015) FuzzyNumbers Package: Tools to deal with fuzzy numbers in R. R package version 0.4-1, https://cran.r-project.org/web/packages=FuzzyNumbers
Gagolewski, M., Caha, J. (2015) A guide to the FuzzyNumbers package for R (FuzzyNumbers version 0.4-1) http://FuzzyNumbers.rexamine.com
See Also
DISTRIB FuzzyNumbers FuzzyNumbers.Ext.2 Calculator.LR.FNs
Examples
if(!require(FuzzyNumbers)){install.packages("FuzzyNumbers")}
library(FuzzyNumbers)
knot.n = 2
T <- PLFN( knot.n=knot.n,
X.dist="norm", X.dist.par=c(0,1),
slX.dist="exp", slX.dist.par=3,
srX.dist="beta", srX.dist.par=c(1,3)
)
T
plot(T, type="b")
CUTS <- PLFN.to.cuts(T, knot.n)
CUTS
T2 = cuts.to.PLFN(CUTS)
plot(T2, type="b", col=2, add=TRUE, lwd=3, lty=3)
[Package Sim.PLFN version 1.0 Index]