Learn R Programming

FuzzySTs (version 0.5)

prm_triangle: PRM ranking of two triangular fuzzy numbers

Description

Convenience wrapper around prm_polygon for triangular fuzzy numbers, specified by their three defining points \((a, b, c)\) with \(a \le b \le c\): membership rises linearly from 0 at a to 1 at b, then falls linearly back to 0 at c.

Usage

prm_triangle(v1, v2, eps = 1e-06)

Value

See prm_polygon.

Arguments

v1, v2

Numeric vectors of length 3, c(a, b, c), giving the left, peak and right points of each triangular fuzzy number. Named v1/v2 for consistency with prm_polygon and prm_trapezoid: argument 1 always describes \(\tilde x_1\), argument 2 always describes \(\tilde x_2\).

eps

Passed to prm_polygon; only matters when v1 or v2 is crisp (a == b == c).

See Also

prm_polygon, prm_trapezoid

Examples

Run this code
res <- prm_triangle(c(1, 3, 6), c(4, 7, 9))
summary_prm(res)

Run the code above in your browser using DataLab