Learn R Programming

rLDCP (version 1.0.2)

degree_mf: Define generic calculation of fuzzy membership degrees

Description

It is a generic function in charge of computing fuzzy membership degrees. Namely, it identifies the specific membership function to consider and run the related method for computing the membership degree for a given input value. It takes as input an object (trapezoid_mf, triangle_mf and fuzzy_partitions) and the related input values

Usage

degree_mf(shape, input)

Arguments

shape

is the object (trapezoid_mf, triangle_mf and fuzzy_partitions) to dispatch to.

input

is the value to be assess.

Value

the membership degree for a given input values.

Examples

Run this code
# NOT RUN {
w <- degree_mf(triangle_mf(450,450,550),450)

w <- degree_mf(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)),450)
# }

Run the code above in your browser using DataLab