FisIn: Class "Fisin"

FisInR Documentation

Class "Fisin"

Description

Class to manage a Fis input

Fields

name

character vector, The name of the input

Constructors

FisIn()

The default constructor to build an empty input with the default range [0, 1]

return:

FisIn object

FisIn(minimum, maximum)

The constructor to build an empty input

argument: minimum

numeric value, The minimum range value of the input

argument: maximum

numeric value, The maximum range value of the input

return:

FisIn object

FisIn(number_of_mfs, minimum, maximum)

The constructor to build an input with a regular standardized fuzzy partition

argument: number_of_mfs

integer value, The number of Mfs in the fuzzy partition

argument: minimum

numeric value, The minimum range value of the input

argument: maximum

numeric value, The maximum range value of the input

return:

FisIn object

FisIn(breakpoints, minimum, maximum)

The constructor to build an input with an irregular standardized fuzzy partition

argument: breakpoints

numeric vector, The breakpoint values (sorted in ascending order) of the Mfs in the fuzzy partition

argument: minimum

numeric value, The minimum range value of the input

argument: maximum

numeric value, The maximum range value of the input

return:

FisIn object

Methods

range()
return:

numeric vector, The range of the input (min max values)

mf_size()
return:

integer value, The number of Mfs in the input partition

add_mf(mf)

Add an Mf in the input partition

argument: mf

Mf object, The Mf to add

get_mf(mf_index)
argument: mf_index

integer value, The index (1-based index) of the mf to return

return:

Mf object

get_mfs()

Get all mfs in the input

return:

list of Mf objects

is_standardized()
return:

logical value, TRUE if the input is a standardized fuzzy partition, FALSE otherwise

See Also

NewFisIn

Fuzzy Logic Elementary Glossary

Examples

input <- NewFisIn(0, 2)
input$name <- "foo"
input$add_mf(NewMfTrapezoidalInf(0, 1))
input$add_mf(NewMfTriangular(0, 1, 2))
input$add_mf(NewMfTrapezoidalSup(1, 2))

FisPro documentation built on March 31, 2023, 7:22 p.m.