Particionamento por entropia, versão final
This commit is contained in:
parent
0cb2abd476
commit
f3e46735b2
@ -7,7 +7,8 @@ from mpl_toolkits.mplot3d import Axes3D
|
||||
|
||||
from pyFTS.common import Membership
|
||||
|
||||
def plotSets(data, sets,num):
|
||||
def plotSets(data, sets):
|
||||
num = len(sets)
|
||||
fig = plt.figure(figsize=[20, 10])
|
||||
maxx = max(data)
|
||||
minx = min(data)
|
||||
@ -20,8 +21,6 @@ def plotSets(data, sets,num):
|
||||
if s.mf == Membership.trimf:
|
||||
ax0.plot([s.parameters[0],s.parameters[1],s.parameters[2]],[0,1,0])
|
||||
elif s.mf == Membership.gaussmf:
|
||||
print( s.parameters )
|
||||
print([s.lower, s.upper])
|
||||
tmpx = [ kk for kk in np.arange(s.lower, s.upper)]
|
||||
tmpy = [s.membership(kk) for kk in np.arange(s.lower, s.upper)]
|
||||
ax0.plot(tmpx, tmpy)
|
||||
|
Loading…
Reference in New Issue
Block a user