Particionamento com a Gaussmf
This commit is contained in:
parent
756d0d2c1c
commit
17e13fae0b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user