Skip to content

Commit 726fef7

Browse files
committed
added Set.dilated and Set.multiplied, not finished
1 parent f82305b commit 726fef7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

fuzzy/classes.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,18 @@ def intensified(self):
298298
else:
299299
return 1 - 2(1 - x**2)
300300

301+
def dilatated(self):
302+
"""Expands the set with more values and already included values are enhanced.
303+
TODO: implement this as a new set?"""
304+
return NotImplemented
305+
return x ** 1./2.
306+
307+
def multiplication(self, n):
308+
"""Set is multiplied with a constant factor, which changes all membership values.
309+
TODO: implement this as a new set?"""
310+
return NotImplemented
311+
return x * n
312+
301313
def plot(self):
302314
"""Graph the set.
303315
Use the bounds and resolution of the domain to display the set

0 commit comments

Comments
 (0)