fuzlog 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
fuzlog/__init__.py ADDED
@@ -0,0 +1,86 @@
1
+ """Fuzzy logic for Python: small, fast, typed.
2
+
3
+ ``import fuzlog as fz`` gives the whole library:
4
+
5
+ - sets: ``triangle``, ``trapezoid``, ``gauss`` and 13 more shapes, combined with
6
+ ``& | ~ **``;
7
+ - variables: ``Variable`` and ``partition``;
8
+ - rules: ``temp.hot & humidity.high >> fan.fast``;
9
+ - inference: ``Mamdani`` and ``Sugeno``;
10
+ - plots: ``variable.plot()``, ``system.plot(...)``, ``system.surface(...)``.
11
+ """
12
+
13
+ from fuzlog.core import (
14
+ Mamdani,
15
+ Sugeno,
16
+ bell,
17
+ bisector,
18
+ bounded_diff,
19
+ bounded_sum,
20
+ centroid,
21
+ dsigmoid,
22
+ extremely,
23
+ falling,
24
+ gauss,
25
+ gauss2,
26
+ lom,
27
+ mom,
28
+ partition,
29
+ pi_shape,
30
+ piecewise,
31
+ probor,
32
+ psigmoid,
33
+ rectangle,
34
+ rising,
35
+ s_shape,
36
+ sigmoid,
37
+ singleton,
38
+ som,
39
+ somewhat,
40
+ trapezoid,
41
+ triangle,
42
+ very,
43
+ z_shape,
44
+ )
45
+ from fuzlog.types import MF, Array, Defuzzifier, Kernel, Norm, Prop, Rule, Variable
46
+
47
+ __all__ = [
48
+ "MF",
49
+ "Array",
50
+ "Defuzzifier",
51
+ "Kernel",
52
+ "Mamdani",
53
+ "Norm",
54
+ "Prop",
55
+ "Rule",
56
+ "Sugeno",
57
+ "Variable",
58
+ "bell",
59
+ "bisector",
60
+ "bounded_diff",
61
+ "bounded_sum",
62
+ "centroid",
63
+ "dsigmoid",
64
+ "extremely",
65
+ "falling",
66
+ "gauss",
67
+ "gauss2",
68
+ "lom",
69
+ "mom",
70
+ "partition",
71
+ "pi_shape",
72
+ "piecewise",
73
+ "probor",
74
+ "psigmoid",
75
+ "rectangle",
76
+ "rising",
77
+ "s_shape",
78
+ "sigmoid",
79
+ "singleton",
80
+ "som",
81
+ "somewhat",
82
+ "trapezoid",
83
+ "triangle",
84
+ "very",
85
+ "z_shape",
86
+ ]