@thi.ng/fuzzy 2.1.72 → 2.1.74
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 +1 -1
- package/package.json +8 -8
- package/rules.d.ts +4 -4
- package/var.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/fuzzy",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.74",
|
|
4
4
|
"description": "Fuzzy logic operators & configurable rule inferencing engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.9.
|
|
40
|
-
"@thi.ng/math": "^5.10.
|
|
39
|
+
"@thi.ng/api": "^8.9.30",
|
|
40
|
+
"@thi.ng/math": "^5.10.7"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@microsoft/api-extractor": "^7.
|
|
44
|
-
"esbuild": "^0.20.
|
|
43
|
+
"@microsoft/api-extractor": "^7.42.3",
|
|
44
|
+
"esbuild": "^0.20.1",
|
|
45
45
|
"rimraf": "^5.0.5",
|
|
46
|
-
"typedoc": "^0.25.
|
|
47
|
-
"typescript": "^5.
|
|
46
|
+
"typedoc": "^0.25.12",
|
|
47
|
+
"typescript": "^5.4.2"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"agent",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"thi.ng": {
|
|
107
107
|
"year": 2020
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
|
|
110
110
|
}
|
package/rules.d.ts
CHANGED
|
@@ -36,8 +36,8 @@ import type { LVarKeySet, LVarSet, Rule } from "./api.js";
|
|
|
36
36
|
* @param then -
|
|
37
37
|
* @param weight -
|
|
38
38
|
*/
|
|
39
|
-
export declare const rule: <I extends LVarSet<string>, O extends LVarSet<string>>(op: FnN2, $if:
|
|
40
|
-
export declare const and: <I extends LVarSet<string>, O extends LVarSet<string>>($if:
|
|
41
|
-
export declare const strongAnd: <I extends LVarSet<string>, O extends LVarSet<string>>($if:
|
|
42
|
-
export declare const or: <I extends LVarSet<string>, O extends LVarSet<string>>($if:
|
|
39
|
+
export declare const rule: <I extends LVarSet<string>, O extends LVarSet<string>>(op: FnN2, $if: LVarKeySet<I, keyof I>, then: LVarKeySet<O, keyof O>, weight?: number) => Rule<I, O>;
|
|
40
|
+
export declare const and: <I extends LVarSet<string>, O extends LVarSet<string>>($if: LVarKeySet<I, keyof I>, then: LVarKeySet<O, keyof O>, weight?: number) => Rule<I, O>;
|
|
41
|
+
export declare const strongAnd: <I extends LVarSet<string>, O extends LVarSet<string>>($if: LVarKeySet<I, keyof I>, then: LVarKeySet<O, keyof O>, weight?: number) => Rule<I, O>;
|
|
42
|
+
export declare const or: <I extends LVarSet<string>, O extends LVarSet<string>>($if: LVarKeySet<I, keyof I>, then: LVarKeySet<O, keyof O>, weight?: number) => Rule<I, O>;
|
|
43
43
|
//# sourceMappingURL=rules.d.ts.map
|
package/var.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import type { LVar } from "./api.js";
|
|
|
20
20
|
* @param domain -
|
|
21
21
|
* @param terms -
|
|
22
22
|
*/
|
|
23
|
-
export declare const variable: <K extends string>(domain: import("@thi.ng/api").Range, terms:
|
|
23
|
+
export declare const variable: <K extends string>(domain: import("@thi.ng/api/range").Range, terms: LVar<K>["terms"]) => LVar<K>;
|
|
24
24
|
/**
|
|
25
25
|
* Takes an LVar and a domain value `x`. Returns the ID of the var's fuzzy set
|
|
26
26
|
* term which yields the max truth value for given `x`. If `threshold` is
|