@thi.ng/distance 2.4.52 → 2.4.54

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-02-22T11:59:16Z
3
+ - **Last updated**: 2024-02-25T14:07: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/manhattan.d.ts CHANGED
@@ -16,6 +16,8 @@ import type { IDistance, Metric } from "./api.js";
16
16
  *
17
17
  * @example
18
18
  * ```ts
19
+ * import { MANHATTAN2 } from "@thi.ng/distance";
20
+ *
19
21
  * MANHATTAN2.metric([0,0], [10,20])
20
22
  * // 30
21
23
  *
@@ -32,7 +34,7 @@ import type { IDistance, Metric } from "./api.js";
32
34
  * // 30
33
35
  *
34
36
  * // however, starting w/ eucledian dist first
35
- * e = mag([10, 20])
37
+ * e = Math.hypot(10, 20)
36
38
  * // 22.360679774997898
37
39
  *
38
40
  * m = MANHATTAN2.to(e)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/distance",
3
- "version": "2.4.52",
3
+ "version": "2.4.54",
4
4
  "description": "N-dimensional distance metrics & K-nearest neighborhoods for point queries",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,12 +35,12 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.25",
38
+ "@thi.ng/api": "^8.9.26",
39
39
  "@thi.ng/checks": "^3.5.0",
40
40
  "@thi.ng/errors": "^2.4.18",
41
- "@thi.ng/heaps": "^2.1.61",
42
- "@thi.ng/math": "^5.10.2",
43
- "@thi.ng/vectors": "^7.10.10"
41
+ "@thi.ng/heaps": "^2.1.62",
42
+ "@thi.ng/math": "^5.10.3",
43
+ "@thi.ng/vectors": "^7.10.12"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@microsoft/api-extractor": "^7.40.1",
@@ -112,5 +112,5 @@
112
112
  ],
113
113
  "year": 2021
114
114
  },
115
- "gitHead": "4513a1c703bdbf0f0867f03e547e47692e415fac\n"
115
+ "gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
116
116
  }