@thi.ng/fuzzy 2.1.70 → 2.1.72

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-01T15:22:50Z
3
+ - **Last updated**: 2024-03-07T20:40:47Z
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.
package/README.md CHANGED
@@ -139,6 +139,11 @@ package provides utilities to visualize the fuzzy sets of an L-var.
139
139
  l-var](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/temperature-lvar-2.svg)
140
140
 
141
141
  ```ts
142
+ import {
143
+ variable, invSigmoid, sigmoid, trapezoid,
144
+ evaluate, classify
145
+ } from "@thi.ng/fuzzy";
146
+
142
147
  // temperature sets (in celsius)
143
148
  const temp = variable(
144
149
  // value domain
@@ -182,6 +187,11 @@ Logic](https://www.researchgate.net/publication/267041266_Introduction_to_fuzzy_
182
187
  tutorial](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/fuzzy-matrix-dernoncourt.png)
183
188
 
184
189
  ```ts
190
+ import {
191
+ variable, ramp, invRamp, gaussian, triangle,
192
+ or, defuzz, meanOfMaximaStrategy
193
+ } from "@thi.ng/fuzzy";
194
+
185
195
  // define fuzzy input variables
186
196
  const inputs = {
187
197
  food: variable([0, 10], {
@@ -254,6 +264,9 @@ Here is the ASCII art output for the
254
264
  and using `tnormMin` (the default) to transform each rule's output set(s):
255
265
 
256
266
  ```ts
267
+ import { defuzz, centroidStrategy } from "@thi.ng/fuzzy";
268
+ import { instrumentStrategy, fuzzySetToAscii } from "@thi.ng/fuzzy-viz";
269
+
257
270
  // wrap existing strategy
258
271
  const strat = instrumentStrategy(centroidStrategy(), fuzzySetToAscii());
259
272
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/fuzzy",
3
- "version": "2.1.70",
3
+ "version": "2.1.72",
4
4
  "description": "Fuzzy logic operators & configurable rule inferencing engine",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -32,11 +32,12 @@
32
32
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
33
33
  "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
34
34
  "pub": "yarn npm publish --access public",
35
- "test": "bun test"
35
+ "test": "bun test",
36
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
36
37
  },
37
38
  "dependencies": {
38
- "@thi.ng/api": "^8.9.27",
39
- "@thi.ng/math": "^5.10.4"
39
+ "@thi.ng/api": "^8.9.28",
40
+ "@thi.ng/math": "^5.10.5"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@microsoft/api-extractor": "^7.40.1",
@@ -105,5 +106,5 @@
105
106
  "thi.ng": {
106
107
  "year": 2020
107
108
  },
108
- "gitHead": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n"
109
+ "gitHead": "a421058a65ba76608d94129ac29451bfedaf201c\n"
109
110
  }