Learn R Programming

FuzzySTs (version 0.5)

prm_trapezoid: PRM ranking of two trapezoidal fuzzy numbers

Description

Convenience wrapper around prm_polygon for trapezoidal fuzzy numbers, specified by their four defining points \((a, b, c, d)\) with \(a \le b \le c \le d\): membership rises linearly from 0 at a to 1 at b, stays at 1 between b and c, then falls linearly back to 0 at d. (Setting b = c recovers a triangular fuzzy number.)

Usage

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

Value

See prm_polygon.

Arguments

v1, v2

Numeric vectors of length 4, c(a, b, c, d), giving the four defining points of each trapezoidal fuzzy number. Named v1/v2 for consistency with prm_polygon and prm_triangle: 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 == d).

See Also

prm_polygon, prm_triangle

Examples

Run this code
res <- prm_trapezoid(c(3, 5, 5, 6), c(-2, -1, -1, 1))
summary_prm(res)

Run the code above in your browser using DataLab