From f3e46735b26c830ac17cf46f36952145e1d2ce5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=C3=B4nio=20C=C3=A2ndido=20de=20Lima=20e=20Silva?= Date: Mon, 26 Dec 2016 17:13:19 -0200 Subject: [PATCH] =?UTF-8?q?Particionamento=20por=20entropia,=20vers=C3=A3o?= =?UTF-8?q?=20final?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- partitioners/Util.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/partitioners/Util.py b/partitioners/Util.py index bd929b6..29189cc 100644 --- a/partitioners/Util.py +++ b/partitioners/Util.py @@ -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)