Learn R Programming

genfrn (version 0.1.4)

rtfn: A generating function of triangular fuzzy number via uniform distribution

Description

A generating function of triangular fuzzy number via uniform distribution based on Souliotis et al. (2022). See detail in references.

Usage

rtfn(n, a, b)

Value

A data frame with two variables, that is, x and mf

Arguments

n

total number of random triangular fuzzy number

a

the left point of triangular fuzzy number

b

the right point of triangular fuzzy number

References

Souliotis, G., Alanazi, Y., & Papadopoulos, B. (2022). Construction of fuzzy numbers via cumulative distribution function. Mathematics, 10(18), 3350. https://doi.org/10.3390/math10183350

Examples

Run this code
df <- rtfn(500,1,5)
head(df)
plot(df) # or plot(df,type='h')

Run the code above in your browser using DataLab