Exemple #1
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 14 18:56:00 2019

@author: arslan
"""

from pyit2fls import IT2FS_Gaussian_UncertMean, IT2FS_plot, meet, \
                     join, min_t_norm, max_s_norm
from numpy import linspace

domain = linspace(0., 1., 100)

A = IT2FS_Gaussian_UncertMean(domain, [0., 0.1, 0.1, 1.])
B = IT2FS_Gaussian_UncertMean(domain, [0.33, 0.1, 0.1, 1.])
C = IT2FS_Gaussian_UncertMean(domain, [0.66, 0.1, 0.1, 1.])

IT2FS_plot(A, B, C, title="", legends=["Small","Medium","Large"], filename="multiSet")

AB = meet(domain, A, B, min_t_norm)
AB.plot(filename="meet")

BC = join(domain, B, C, max_s_norm)
BC.plot(filename="join")
Exemple #2
0
A4 = IT2FS_Gaussian_UncertMean(domain, [3., 0.2, 0.5, 1.])
A5 = IT2FS_Gaussian_UncertMean(domain, [4., 0.2, 0.5, 1.])
A6 = IT2FS_Gaussian_UncertMean(domain, [5., 0.2, 0.5, 1.])
A7 = IT2FS_Gaussian_UncertMean(domain, [6., 0.2, 0.5, 1.])
IT2FS_plot(
    A1,
    A2,
    A3,
    A4,
    A5,
    A6,
    A7,
    title="Sets",
    legends=["Set 1", "Set 2", "Set 3", "Set 4", "Set 5", "Set 6", "Set 7"])

M1 = meet(domain, A1, A2, min_t_norm)
M2 = meet(domain, A2, A3, product_t_norm)
M3 = meet(domain, A3, A4, lukasiewicz_t_norm)
M4 = meet(domain, A4, A5, drastic_t_norm)
M5 = meet(domain, A5, A6, nilpotent_minimum_t_norm)
M6 = meet(domain, A6, A7, hamacher_product_t_norm)

IT2FS_plot(M1,
           M2,
           M3,
           M4,
           M5,
           M6,
           legends=[
               "Minimum (1, 2)", "Product (2, 3)", "Lukasiewicz (3, 4)",
               "Drastic (4, 5)", "Nilpotent Minimum (5, 6)",