@thi.ng/fuzzy 2.1.133 → 2.1.134
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.
- package/README.md +18 -17
- package/package.json +5 -5
- package/shapes.d.ts +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
|
-
<!-- Please see: https://
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/fuzzy)
|
|
6
6
|

|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
10
|
> This is one of 214 standalone projects, maintained as part
|
|
11
|
-
> of the [@thi.ng/umbrella](https://
|
|
11
|
+
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
14
|
-
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
-
>
|
|
14
|
+
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
+
> me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations).
|
|
16
|
+
> Thank you! ❤️
|
|
16
17
|
|
|
17
18
|
- [About](#about)
|
|
18
19
|
- [Features](#features)
|
|
@@ -38,7 +39,7 @@ Fuzzy logic operators & configurable rule inferencing engine.
|
|
|
38
39
|
- Fully type checked
|
|
39
40
|
- Fuzzy set domain shaping & composition functions (incl. negated / inverse)
|
|
40
41
|
- Various [T-norms &
|
|
41
|
-
S-norms](https://
|
|
42
|
+
S-norms](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/fuzzy/src/tnorms.ts),
|
|
42
43
|
incl. parametric versions
|
|
43
44
|
- Rules with multiple inputs/outputs and arbitrary term combinators (i.e.
|
|
44
45
|
T-norms). Syntax sugar for common `and`/`or` rules.
|
|
@@ -49,7 +50,7 @@ Fuzzy logic operators & configurable rule inferencing engine.
|
|
|
49
50
|
- Linguistic variable creation and term/set classification for given domain
|
|
50
51
|
values
|
|
51
52
|
- Fuzzy set visualization (via
|
|
52
|
-
[@thi.ng/fuzzy-viz](https://
|
|
53
|
+
[@thi.ng/fuzzy-viz](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/fuzzy-viz))
|
|
53
54
|
|
|
54
55
|
### References / Further reading
|
|
55
56
|
|
|
@@ -65,11 +66,11 @@ Fuzzy logic operators & configurable rule inferencing engine.
|
|
|
65
66
|
|
|
66
67
|
**STABLE** - used in production
|
|
67
68
|
|
|
68
|
-
[Search or submit any issues for this package](https://
|
|
69
|
+
[Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Bfuzzy%5D)
|
|
69
70
|
|
|
70
71
|
## Support packages
|
|
71
72
|
|
|
72
|
-
- [@thi.ng/fuzzy-viz](https://
|
|
73
|
+
- [@thi.ng/fuzzy-viz](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/fuzzy-viz) - Visualization, instrumentation & introspection utils for [@thi.ng/fuzzy](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/fuzzy)
|
|
73
74
|
|
|
74
75
|
## Installation
|
|
75
76
|
|
|
@@ -101,8 +102,8 @@ Package sizes (brotli'd, pre-treeshake): ESM: 1.62 KB
|
|
|
101
102
|
|
|
102
103
|
## Dependencies
|
|
103
104
|
|
|
104
|
-
- [@thi.ng/api](https://
|
|
105
|
-
- [@thi.ng/math](https://
|
|
105
|
+
- [@thi.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
|
|
106
|
+
- [@thi.ng/math](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/math)
|
|
106
107
|
|
|
107
108
|
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
108
109
|
|
|
@@ -111,7 +112,7 @@ Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
|
111
112
|
[Generated API docs](https://docs.thi.ng/umbrella/fuzzy/)
|
|
112
113
|
|
|
113
114
|
(See
|
|
114
|
-
[tests](https://
|
|
115
|
+
[tests](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/fuzzy/test) for
|
|
115
116
|
more usage examples).
|
|
116
117
|
|
|
117
118
|
### Fuzzy set generators & combinators
|
|
@@ -140,11 +141,11 @@ overlapping) fuzzy sets within a given value domain. The can be used standalone
|
|
|
140
141
|
or as inputs/outputs in rules (further below).
|
|
141
142
|
|
|
142
143
|
The
|
|
143
|
-
[@thi.ng/fuzzy-viz](https://
|
|
144
|
+
[@thi.ng/fuzzy-viz](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/fuzzy-viz)
|
|
144
145
|
package provides utilities to visualize the fuzzy sets of an L-var.
|
|
145
146
|
|
|
146
147
|

|
|
148
149
|
|
|
149
150
|
```ts
|
|
150
151
|
import {
|
|
@@ -192,7 +193,7 @@ Example taken from Franck Dernoncourt's [Introduction to Fuzzy
|
|
|
192
193
|
Logic](https://www.researchgate.net/publication/267041266_Introduction_to_fuzzy_logic):
|
|
193
194
|
|
|
194
195
|

|
|
196
197
|
|
|
197
198
|
```ts
|
|
198
199
|
import {
|
|
@@ -263,7 +264,7 @@ Note: The results are slightly different than those in the textbook example, due
|
|
|
263
264
|
to different `gaussian` fuzzy sets used for the `service` L-var.
|
|
264
265
|
|
|
265
266
|
Using `instrumentStrategy()` from the upcoming
|
|
266
|
-
[@thi.ng/fuzzy-viz](https://
|
|
267
|
+
[@thi.ng/fuzzy-viz](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/fuzzy-viz)
|
|
267
268
|
package, we can also visualize the final, transformed fuzzy sets used to compute
|
|
268
269
|
crisp results and highlight the position of the crisp result value.
|
|
269
270
|
|
|
@@ -355,7 +356,7 @@ Just for illustration purposes (and using a different example), SVG output can
|
|
|
355
356
|
be obtained by merely switching to another instrumentation function (here
|
|
356
357
|
`fuzzySetToSvg()`):
|
|
357
358
|
|
|
358
|
-
 visualization example](https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/fuzzy/strategy-viz.svg)
|
|
359
360
|
|
|
360
361
|
## Authors
|
|
361
362
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/fuzzy",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.134",
|
|
4
4
|
"description": "Fuzzy logic operators & configurable rule inferencing engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://
|
|
11
|
+
"url": "git+https://codeberg.org/thi.ng/umbrella.git",
|
|
12
12
|
"directory": "packages/fuzzy"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://thi.ng/fuzzy",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/math": "^5.15.
|
|
43
|
+
"@thi.ng/api": "^8.12.18",
|
|
44
|
+
"@thi.ng/math": "^5.15.7"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"esbuild": "^0.27.2",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"thi.ng": {
|
|
106
106
|
"year": 2020
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "8ddf86ea0a1e658ddbf19cc645b29d0c176e29c4\n"
|
|
109
109
|
}
|
package/shapes.d.ts
CHANGED
|
@@ -122,7 +122,7 @@ export declare const invAlphaCut: (fn: FuzzyFn, alpha?: number) => FuzzyFn;
|
|
|
122
122
|
*
|
|
123
123
|
* - [Interactive graph](https://www.desmos.com/calculator/pnq6kqzfb5)
|
|
124
124
|
* - https://en.wikipedia.org/wiki/T-norm
|
|
125
|
-
* - https://
|
|
125
|
+
* - https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/fuzzy/src/tnorms.ts
|
|
126
126
|
*
|
|
127
127
|
* @example
|
|
128
128
|
* ```ts
|