Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2af8dd6

Browse files
Domain doc
1 parent bb5adb4 commit 2af8dd6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

‎src/fuzzylogic/classes.py‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,8 @@ class Domain:
3535
>>> temp.hot = Set(lambda x: 0)
3636
>>> temp.hot(5)
3737
0
38-
39-
DO NOT call a derived set without assignment first as it WILL
40-
confuse the recursion and seriously mess up.
41-
NOT: ~temp.hot(2) or ~(temp.hot.)(2)
42-
BUT:
43-
>>> not_hot = ~temp.hot
44-
>>> not_hot(2)
38+
It is possible now to call derived sets without assignment first!
39+
>>> (very(~temp.hot) | ~very(temp.hot))(2)
4540
1
4641
4742
You MUST NOT add arbitrary attributes to an *instance* of Domain - you can

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /