# WARNING: this source code was automatically generated by pyFUME.
from simpful import *

FS = FuzzySystem(show_banner=False)
RULE1 = "IF (pippo IS cluster1) AND (pluto IS cluster1) THEN (OUTPUT IS fun1)"
RULE2 = "IF (pippo IS cluster2) AND (pluto IS cluster2) THEN (OUTPUT IS fun2)"
FS.add_rules([RULE1, RULE2])

FS.set_output_function('fun1', '1.000000e+00*pippo+2.000000e+00*pluto+3.000000e+00')
FS.set_output_function('fun2', '2.000000e+00*pippo+3.000000e+00*pluto+5.000000e+00')

FS_1 = FuzzySet(function=Gaussian_MF(0.000000, 1.000000), term='cluster1')
FS_2 = FuzzySet(function=Sigmoid_MF(1.000000, 2.000000), term='cluster2')
MF_pippo = LinguisticVariable([FS_1, FS_2], concept='pippo')
FS.add_linguistic_variable('pippo', MF_pippo)

FS_3 = FuzzySet(function=DoubleGaussian_MF(0.000000, 1.000000, 2.000000, 3.000000), term='cluster1')
FS_4 = FuzzySet(function=InvGaussian_MF(0.000000, 1.000000), term='cluster2')
MF_pluto = LinguisticVariable([FS_3, FS_4], concept='pluto')
FS.add_linguistic_variable('pluto', MF_pluto)


# end of automatically generated code #