@thi.ng/fuzzy 2.1.5 → 2.1.8

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**: 2022-04-07T14:17:30Z
3
+ - **Last updated**: 2022-07-19T15:36:12Z
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/fuzzy",
3
- "version": "2.1.5",
3
+ "version": "2.1.8",
4
4
  "description": "Fuzzy logic operators & configurable rule inferencing engine",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,16 +34,16 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.3.5",
38
- "@thi.ng/math": "^5.3.1"
37
+ "@thi.ng/api": "^8.3.8",
38
+ "@thi.ng/math": "^5.3.4"
39
39
  },
40
40
  "devDependencies": {
41
- "@microsoft/api-extractor": "^7.19.4",
42
- "@thi.ng/testament": "^0.2.5",
41
+ "@microsoft/api-extractor": "^7.25.0",
42
+ "@thi.ng/testament": "^0.2.9",
43
43
  "rimraf": "^3.0.2",
44
44
  "tools": "^0.0.1",
45
- "typedoc": "^0.22.13",
46
- "typescript": "^4.6.2"
45
+ "typedoc": "^0.22.17",
46
+ "typescript": "^4.7.4"
47
47
  },
48
48
  "keywords": [
49
49
  "agent",
@@ -105,5 +105,5 @@
105
105
  "thi.ng": {
106
106
  "year": 2020
107
107
  },
108
- "gitHead": "5ee1feb590dd935593b1dd4e7f38a3ed3ba64765\n"
108
+ "gitHead": "108a6357b77d457912d30681d7cc5603ae995209\n"
109
109
  }
package/rules.d.ts CHANGED
@@ -35,7 +35,7 @@ import type { LVarKeySet, LVarSet, Rule } from "./api.js";
35
35
  * @param weight -
36
36
  */
37
37
  export declare const rule: <I extends LVarSet<string>, O extends LVarSet<string>>(op: FnN2, $if: Partial<{ [k in keyof I]: keyof I[k]["terms"]; }>, then: Partial<{ [k_1 in keyof O]: keyof O[k_1]["terms"]; }>, weight?: number) => Rule<I, O>;
38
- export declare const and: <I extends LVarSet<string>, O extends LVarSet<string>>($if: Partial<{ [k in keyof I]: keyof I[k]["terms"]; }>, then: Partial<{ [k_1 in keyof O]: keyof O[k_1]["terms"]; }>, weight?: number | undefined) => Rule<I, O>;
39
- export declare const strongAnd: <I extends LVarSet<string>, O extends LVarSet<string>>($if: Partial<{ [k in keyof I]: keyof I[k]["terms"]; }>, then: Partial<{ [k_1 in keyof O]: keyof O[k_1]["terms"]; }>, weight?: number | undefined) => Rule<I, O>;
40
- export declare const or: <I extends LVarSet<string>, O extends LVarSet<string>>($if: Partial<{ [k in keyof I]: keyof I[k]["terms"]; }>, then: Partial<{ [k_1 in keyof O]: keyof O[k_1]["terms"]; }>, weight?: number | undefined) => Rule<I, O>;
38
+ export declare const and: <I extends LVarSet<string>, O extends LVarSet<string>>($if: Partial<{ [k in keyof I]: keyof I[k]["terms"]; }>, then: Partial<{ [k_1 in keyof O]: keyof O[k_1]["terms"]; }>, weight?: number) => Rule<I, O>;
39
+ export declare const strongAnd: <I extends LVarSet<string>, O extends LVarSet<string>>($if: Partial<{ [k in keyof I]: keyof I[k]["terms"]; }>, then: Partial<{ [k_1 in keyof O]: keyof O[k_1]["terms"]; }>, weight?: number) => Rule<I, O>;
40
+ export declare const or: <I extends LVarSet<string>, O extends LVarSet<string>>($if: Partial<{ [k in keyof I]: keyof I[k]["terms"]; }>, then: Partial<{ [k_1 in keyof O]: keyof O[k_1]["terms"]; }>, weight?: number) => Rule<I, O>;
41
41
  //# sourceMappingURL=rules.d.ts.map
@@ -29,5 +29,5 @@ import type { DefuzzStrategy, DefuzzStrategyOpts } from "../api.js";
29
29
  *
30
30
  * @param opts -
31
31
  */
32
- export declare const bisectorStrategy: (opts?: Partial<DefuzzStrategyOpts> | undefined) => DefuzzStrategy;
32
+ export declare const bisectorStrategy: (opts?: Partial<DefuzzStrategyOpts>) => DefuzzStrategy;
33
33
  //# sourceMappingURL=bisector.d.ts.map
@@ -29,5 +29,5 @@ import type { DefuzzStrategy, DefuzzStrategyOpts } from "../api.js";
29
29
  *
30
30
  * @param opts -
31
31
  */
32
- export declare const centroidStrategy: (opts?: Partial<DefuzzStrategyOpts> | undefined) => DefuzzStrategy;
32
+ export declare const centroidStrategy: (opts?: Partial<DefuzzStrategyOpts>) => DefuzzStrategy;
33
33
  //# sourceMappingURL=centroid.d.ts.map
@@ -26,7 +26,7 @@ import type { DefuzzStrategy, DefuzzStrategyOpts } from "../api.js";
26
26
  *
27
27
  * @param opts -
28
28
  */
29
- export declare const meanOfMaximaStrategy: (opts?: Partial<DefuzzStrategyOpts> | undefined) => DefuzzStrategy;
29
+ export declare const meanOfMaximaStrategy: (opts?: Partial<DefuzzStrategyOpts>) => DefuzzStrategy;
30
30
  /**
31
31
  * Higher-order function. Returns First-of-Maxima defuzzification strategy,
32
32
  * yielding the approx. start position of the maximum region of a given fuzzy
@@ -55,7 +55,7 @@ export declare const meanOfMaximaStrategy: (opts?: Partial<DefuzzStrategyOpts> |
55
55
  *
56
56
  * @param opts -
57
57
  */
58
- export declare const firstOfMaximaStrategy: (opts?: Partial<DefuzzStrategyOpts> | undefined) => DefuzzStrategy;
58
+ export declare const firstOfMaximaStrategy: (opts?: Partial<DefuzzStrategyOpts>) => DefuzzStrategy;
59
59
  /**
60
60
  * Higher-order function. Returns Last-of-Maxima defuzzification strategy,
61
61
  * yielding the approx. final position of the maximum region of a given fuzzy
@@ -84,5 +84,5 @@ export declare const firstOfMaximaStrategy: (opts?: Partial<DefuzzStrategyOpts>
84
84
  *
85
85
  * @param opts -
86
86
  */
87
- export declare const lastOfMaximaStrategy: (opts?: Partial<DefuzzStrategyOpts> | undefined) => DefuzzStrategy;
87
+ export declare const lastOfMaximaStrategy: (opts?: Partial<DefuzzStrategyOpts>) => DefuzzStrategy;
88
88
  //# sourceMappingURL=maxima.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import type { DefuzzStrategyOpts } from "../api.js";
2
- export declare const defaultOpts: (opts?: Partial<DefuzzStrategyOpts> | undefined) => DefuzzStrategyOpts;
2
+ export declare const defaultOpts: (opts?: Partial<DefuzzStrategyOpts>) => DefuzzStrategyOpts;
3
3
  //# sourceMappingURL=opts.d.ts.map