fuzzy_partitions: Define the fuzzy parititions

Description Usage Arguments Value Examples

Description

It is a constructor of fuzzy partitions, it defines a set of membership functions. It takes as input a set of trapezoid_mf or triangle_mf or objects in the shape_mf class.

Usage

1

Arguments

...

are the diferent partitions, e.g., trapezoid_mf or triangle_mf.

Value

the (fuzzy_partitions <- list(...)

Examples

1
2
3
4
5
fuzzy_partitions(triangle_mf(450,450,550),
                 triangle_mf(450,550,600),
                 trapezoid_mf(550,600,800, 1000),
                 triangle_mf(800,1000,1300),
                 trapezoid_mf(1000,1300,1500,1500))

Example output

[[1]]
$a
[1] 450

$b
[1] 450

$c
[1] 550

attr(,"class")
[1] "triangle_mf"

[[2]]
$a
[1] 450

$b
[1] 550

$c
[1] 600

attr(,"class")
[1] "triangle_mf"

[[3]]
$a
[1] 550

$b
[1] 600

$c
[1] 800

$d
[1] 1000

attr(,"class")
[1] "trapezoid_mf"

[[4]]
$a
[1] 800

$b
[1] 1000

$c
[1] 1300

attr(,"class")
[1] "triangle_mf"

[[5]]
$a
[1] 1000

$b
[1] 1300

$c
[1] 1500

$d
[1] 1500

attr(,"class")
[1] "trapezoid_mf"

attr(,"class")
[1] "fuzzy_partitions"

rLDCP documentation built on May 2, 2019, 2:30 a.m.