@thi.ng/fuzzy 2.1.16 → 2.1.17
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/CHANGELOG.md +38 -38
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2022-
|
|
3
|
+
- **Last updated**: 2022-11-23T22:46:54Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -32,9 +32,9 @@ and/or version bumps of transitive dependencies.
|
|
|
32
32
|
|
|
33
33
|
#### ♻️ Refactoring
|
|
34
34
|
|
|
35
|
-
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
36
35
|
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
37
36
|
- add .js suffix for all relative imports
|
|
37
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
38
38
|
|
|
39
39
|
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/fuzzy@2.0.0) (2021-10-12)
|
|
40
40
|
|
|
@@ -55,26 +55,50 @@ and/or version bumps of transitive dependencies.
|
|
|
55
55
|
|
|
56
56
|
#### ♻️ Refactoring
|
|
57
57
|
|
|
58
|
-
- update imports ([3d46498](https://github.com/thi-ng/umbrella/commit/3d46498))
|
|
59
58
|
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
60
59
|
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
60
|
+
- update imports ([3d46498](https://github.com/thi-ng/umbrella/commit/3d46498))
|
|
61
61
|
|
|
62
62
|
### [0.1.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/fuzzy@0.1.3) (2021-02-20)
|
|
63
63
|
|
|
64
64
|
#### ♻️ Refactoring
|
|
65
65
|
|
|
66
|
-
- update to use new Range type ([1cc23c6](https://github.com/thi-ng/umbrella/commit/1cc23c6))
|
|
67
66
|
- use clamp0() ([2825130](https://github.com/thi-ng/umbrella/commit/2825130))
|
|
67
|
+
- update to use new Range type ([1cc23c6](https://github.com/thi-ng/umbrella/commit/1cc23c6))
|
|
68
68
|
|
|
69
69
|
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/fuzzy@0.1.0) (2020-12-22)
|
|
70
70
|
|
|
71
71
|
#### 🚀 Features
|
|
72
72
|
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
73
|
+
- import as new pkg, refactor ([a578194](https://github.com/thi-ng/umbrella/commit/a578194))
|
|
74
|
+
- re-use T-norms migrated to [@thi.ng/maths](https://github.com/thi-ng/umbrella/tree/main/packages/maths)
|
|
75
|
+
- add variable() factory
|
|
76
|
+
- add classify()
|
|
77
|
+
- fix off-by-one error in trapezoid()
|
|
78
|
+
- add docstrings
|
|
79
|
+
- add evaluate() ([0ffc9d0](https://github.com/thi-ng/umbrella/commit/0ffc9d0))
|
|
80
|
+
- add shapes, strongAnd(), update combineTerms() ([5bf8f0c](https://github.com/thi-ng/umbrella/commit/5bf8f0c))
|
|
81
|
+
- add strict arg for classify(), update docs ([b39248f](https://github.com/thi-ng/umbrella/commit/b39248f))
|
|
82
|
+
- add maxima(), compose(), restructure ([f15d8d7](https://github.com/thi-ng/umbrella/commit/f15d8d7))
|
|
83
|
+
- migrate t-norms from [@thi.ng/math](https://github.com/thi-ng/umbrella/tree/main/packages/math) pkg ([f8993e0](https://github.com/thi-ng/umbrella/commit/f8993e0))
|
|
84
|
+
- add min true threshold for classify() ([6f49a30](https://github.com/thi-ng/umbrella/commit/6f49a30))
|
|
85
|
+
- update docs
|
|
86
|
+
- add alphaCut() & implication() fns ([8ec15fa](https://github.com/thi-ng/umbrella/commit/8ec15fa))
|
|
87
|
+
- update defuzz() output prep ([81abe8c](https://github.com/thi-ng/umbrella/commit/81abe8c))
|
|
88
|
+
- add support for custom implications of rule outputs
|
|
89
|
+
- update/optimize rule weight handling
|
|
90
|
+
- update defuzz() & strategies ([cf337f3](https://github.com/thi-ng/umbrella/commit/cf337f3))
|
|
91
|
+
- simplify DefuzzStrategy to take single FuzzyFn
|
|
92
|
+
- add `combine` s-norm arg to defuzz() and compose output sets before
|
|
93
|
+
handing them to the strategy impl
|
|
94
|
+
- split maximaStrategy() into individual fns
|
|
95
|
+
- simplify/rename strategy opts
|
|
96
|
+
- update strategy interval iteration to minimize floating point errors
|
|
97
|
+
- update tests
|
|
98
|
+
- make lvar, rules, defuzz() typesafe ([0b210c3](https://github.com/thi-ng/umbrella/commit/0b210c3))
|
|
99
|
+
- add/update types (Rule, LVar, LVar helpers)
|
|
100
|
+
- update variable() & rule factories (add generics)
|
|
101
|
+
- make defuzz() generic, infer return type
|
|
78
102
|
- update tests
|
|
79
103
|
- update types, update compose ([566469d](https://github.com/thi-ng/umbrella/commit/566469d))
|
|
80
104
|
- add new LVar types
|
|
@@ -83,36 +107,12 @@ and/or version bumps of transitive dependencies.
|
|
|
83
107
|
- update compose() to return optimized fns
|
|
84
108
|
- add intersect()/union() syntax sugar
|
|
85
109
|
- update defuzz()
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
- update defuzz() & strategies ([cf337f3](https://github.com/thi-ng/umbrella/commit/cf337f3))
|
|
92
|
-
- simplify DefuzzStrategy to take single FuzzyFn
|
|
93
|
-
- add `combine` s-norm arg to defuzz() and compose output sets before
|
|
94
|
-
handing them to the strategy impl
|
|
95
|
-
- split maximaStrategy() into individual fns
|
|
96
|
-
- simplify/rename strategy opts
|
|
97
|
-
- update strategy interval iteration to minimize floating point errors
|
|
110
|
+
- add/update/migrate defuzz strategies ([c1ee15f](https://github.com/thi-ng/umbrella/commit/c1ee15f))
|
|
111
|
+
- move to /strategies subdir
|
|
112
|
+
- make centroidStrategy() default
|
|
113
|
+
- rename & optimize bisectorStrategy()
|
|
114
|
+
- add docstrings w/ diagrams for all strats
|
|
98
115
|
- update tests
|
|
99
|
-
- update defuzz() output prep ([81abe8c](https://github.com/thi-ng/umbrella/commit/81abe8c))
|
|
100
|
-
- add support for custom implications of rule outputs
|
|
101
|
-
- update/optimize rule weight handling
|
|
102
|
-
- add alphaCut() & implication() fns ([8ec15fa](https://github.com/thi-ng/umbrella/commit/8ec15fa))
|
|
103
|
-
- add min true threshold for classify() ([6f49a30](https://github.com/thi-ng/umbrella/commit/6f49a30))
|
|
104
|
-
- update docs
|
|
105
|
-
- migrate t-norms from [@thi.ng/math](https://github.com/thi-ng/umbrella/tree/main/packages/math) pkg ([f8993e0](https://github.com/thi-ng/umbrella/commit/f8993e0))
|
|
106
|
-
- add maxima(), compose(), restructure ([f15d8d7](https://github.com/thi-ng/umbrella/commit/f15d8d7))
|
|
107
|
-
- add strict arg for classify(), update docs ([b39248f](https://github.com/thi-ng/umbrella/commit/b39248f))
|
|
108
|
-
- add shapes, strongAnd(), update combineTerms() ([5bf8f0c](https://github.com/thi-ng/umbrella/commit/5bf8f0c))
|
|
109
|
-
- add evaluate() ([0ffc9d0](https://github.com/thi-ng/umbrella/commit/0ffc9d0))
|
|
110
|
-
- import as new pkg, refactor ([a578194](https://github.com/thi-ng/umbrella/commit/a578194))
|
|
111
|
-
- re-use T-norms migrated to [@thi.ng/maths](https://github.com/thi-ng/umbrella/tree/main/packages/maths)
|
|
112
|
-
- add variable() factory
|
|
113
|
-
- add classify()
|
|
114
|
-
- fix off-by-one error in trapezoid()
|
|
115
|
-
- add docstrings
|
|
116
116
|
|
|
117
117
|
#### ⏱ Performance improvements
|
|
118
118
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/fuzzy",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.17",
|
|
4
4
|
"description": "Fuzzy logic operators & configurable rule inferencing engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.4.
|
|
38
|
-
"@thi.ng/math": "^5.3.
|
|
37
|
+
"@thi.ng/api": "^8.4.6",
|
|
38
|
+
"@thi.ng/math": "^5.3.13"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@microsoft/api-extractor": "^7.33.5",
|
|
42
|
-
"@thi.ng/testament": "^0.3.
|
|
42
|
+
"@thi.ng/testament": "^0.3.5",
|
|
43
43
|
"rimraf": "^3.0.2",
|
|
44
44
|
"tools": "^0.0.1",
|
|
45
|
-
"typedoc": "^0.23.
|
|
45
|
+
"typedoc": "^0.23.20",
|
|
46
46
|
"typescript": "^4.8.4"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"node": ">=12.7"
|
|
64
64
|
},
|
|
65
65
|
"files": [
|
|
66
|
-
"
|
|
67
|
-
"
|
|
66
|
+
"./*.js",
|
|
67
|
+
"./*.d.ts",
|
|
68
68
|
"strategies"
|
|
69
69
|
],
|
|
70
70
|
"exports": {
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"thi.ng": {
|
|
106
106
|
"year": 2020
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "044ee6a3895720fc78e115032d4d831b63510929\n"
|
|
109
109
|
}
|