PLFN.to.cuts {Sim.PLFN}R Documentation

Convert Piecewise Linear Fuzzy Number to a cuts matrix

Description

This function can easily covert a Piecewise Linear Fuzzy Number (PLFN) into a cuts matrix.

Usage

PLFN.to.cuts(P, knot.n)

Arguments

P

A Piecewise Linear Fuzzy Number (PLFN).

knot.n

the number of knots; see package FuzzyNumbers for more details.

Value

This function returned a matrix which contains core, support and knot.n cuts of the considered PLFN.

See Also

DISTRIB FuzzyNumbers FuzzyNumbers.Ext.2 Calculator.LR.FNs

Examples


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
FuzzyNumbers::plot(T, type="b")
cuts = PLFN.to.cuts(T, knot.n)
cuts
cuts[,"L"]  #Lower bounds of cuts
cuts[,"U"]  #Upper bounds of cuts
cuts[2,]    #Or equivalently  cuts["0.6667",]

[Package Sim.PLFN version 1.0 Index]