From 17e13fae0bce3a932363804b3e433fa00d872281 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 12:46:29 -0200 Subject: [PATCH] Particionamento com a Gaussmf --- partitioners/Util.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/partitioners/Util.py b/partitioners/Util.py index a9d5a45..bd929b6 100644 --- a/partitioners/Util.py +++ b/partitioners/Util.py @@ -19,3 +19,9 @@ def plotSets(data, sets,num): for s in sets[k]: 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)