Particionamento com a Gaussmf

This commit is contained in:
Petrônio Cândido de Lima e Silva 2016-12-26 12:46:29 -02:00
parent 756d0d2c1c
commit 17e13fae0b

View File

@ -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)