@thi.ng/fuzzy 2.1.69 → 2.1.71

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +14 -12
  3. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-02-25T14:07:53Z
3
+ - **Last updated**: 2024-03-02T14:05:53Z
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
@@ -1,16 +1,5 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
  <!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
3
- > [!IMPORTANT]
4
- > ‼️ Announcing the thi.ng user survey 2024 📋
5
- >
6
- > [Please participate in the survey here!](https://forms.gle/XacbSDEmQMPZg8197)\
7
- > (open until end of February)
8
- >
9
- > **To achieve a better sample size, I'd highly appreciate if you could
10
- > circulate the link to this survey in your own networks.**
11
- >
12
- > [Discussion](https://github.com/thi-ng/umbrella/discussions/447)
13
-
14
3
  # ![@thi.ng/fuzzy](https://media.thi.ng/umbrella/banners-20230807/thing-fuzzy.svg?4fb57c92)
15
4
 
16
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/fuzzy.svg)](https://www.npmjs.com/package/@thi.ng/fuzzy)
@@ -22,7 +11,7 @@
22
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
23
12
  > and anti-framework.
24
13
  >
25
- > 🚀 Help me to work full-time on these projects by [sponsoring me on
14
+ > 🚀 Please help me to work full-time on these projects by [sponsoring me on
26
15
  > GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
27
16
 
28
17
  - [About](#about)
@@ -150,6 +139,11 @@ package provides utilities to visualize the fuzzy sets of an L-var.
150
139
  l-var](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/temperature-lvar-2.svg)
151
140
 
152
141
  ```ts
142
+ import {
143
+ variable, invSigmoid, sigmoid, trapezoid,
144
+ evaluate, classify
145
+ } from "@thi.ng/fuzzy";
146
+
153
147
  // temperature sets (in celsius)
154
148
  const temp = variable(
155
149
  // value domain
@@ -193,6 +187,11 @@ Logic](https://www.researchgate.net/publication/267041266_Introduction_to_fuzzy_
193
187
  tutorial](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/fuzzy/fuzzy-matrix-dernoncourt.png)
194
188
 
195
189
  ```ts
190
+ import {
191
+ variable, ramp, invRamp, gaussian, triangle,
192
+ or, defuzz, meanOfMaximaStrategy
193
+ } from "@thi.ng/fuzzy";
194
+
196
195
  // define fuzzy input variables
197
196
  const inputs = {
198
197
  food: variable([0, 10], {
@@ -265,6 +264,9 @@ Here is the ASCII art output for the
265
264
  and using `tnormMin` (the default) to transform each rule's output set(s):
266
265
 
267
266
  ```ts
267
+ import { defuzz, centroidStrategy } from "@thi.ng/fuzzy";
268
+ import { instrumentStrategy, fuzzySetToAscii } from "@thi.ng/fuzzy-viz";
269
+
268
270
  // wrap existing strategy
269
271
  const strat = instrumentStrategy(centroidStrategy(), fuzzySetToAscii());
270
272
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/fuzzy",
3
- "version": "2.1.69",
3
+ "version": "2.1.71",
4
4
  "description": "Fuzzy logic operators & configurable rule inferencing engine",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,8 +35,8 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.26",
39
- "@thi.ng/math": "^5.10.3"
38
+ "@thi.ng/api": "^8.9.27",
39
+ "@thi.ng/math": "^5.10.4"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@microsoft/api-extractor": "^7.40.1",
@@ -105,5 +105,5 @@
105
105
  "thi.ng": {
106
106
  "year": 2020
107
107
  },
108
- "gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
108
+ "gitHead": "df9e312af741d87e6b450afcfea6a6e381662b1e\n"
109
109
  }