@thi.ng/k-means 0.6.56 → 0.6.58

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-01-23T15:58:27Z
3
+ - **Last updated**: 2024-01-29T20:39:37Z
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
@@ -7,9 +7,13 @@
7
7
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/k-means.svg)
8
8
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
9
9
 
10
- This is a standalone project, maintained as part of the
11
- [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo and
12
- anti-framework.
10
+ > [!NOTE]
11
+ > This is one of 189 standalone projects, maintained as part
12
+ > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
13
+ > and anti-framework.
14
+ >
15
+ > 🚀 Help me to work full-time on these projects by [sponsoring me on
16
+ > GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
13
17
 
14
18
  - [About](#about)
15
19
  - [Status](#status)
package/kmeans.d.ts CHANGED
@@ -23,7 +23,6 @@ export declare const kmeans: <T extends ReadonlyVec>(k: number, samples: T[], op
23
23
  * fulfilled (e.g. due to lower number of samples and/or distance metric).
24
24
  * Throws an error if `samples` are empty.
25
25
  *
26
- * @remarks
27
26
  * References:
28
27
  * - https://en.wikipedia.org/wiki/K-means%2B%2B
29
28
  * - http://ilpubs.stanford.edu:8090/778/1/2006-13.pdf
@@ -58,7 +57,7 @@ export declare const medians: CentroidStrategy;
58
57
  * @remarks
59
58
  * When using this strategy, you should also use the
60
59
  * [`HAVERSINE_LATLON`](https://docs.thi.ng/umbrella/distance/variables/HAVERSINE_LATLON.html)
61
- * distance metric for {@link KMeansOpts.distance}.
60
+ * distance metric for {@link KMeansOpts.dist}.
62
61
  *
63
62
  * @example
64
63
  * ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/k-means",
3
- "version": "0.6.56",
3
+ "version": "0.6.58",
4
4
  "description": "Configurable k-means & k-medians (with k-means++ initialization) for n-D vectors",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,11 +35,11 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.17",
39
- "@thi.ng/distance": "^2.4.41",
40
- "@thi.ng/errors": "^2.4.11",
41
- "@thi.ng/random": "^3.6.24",
42
- "@thi.ng/vectors": "^7.9.0"
38
+ "@thi.ng/api": "^8.9.19",
39
+ "@thi.ng/distance": "^2.4.43",
40
+ "@thi.ng/errors": "^2.4.12",
41
+ "@thi.ng/random": "^3.6.26",
42
+ "@thi.ng/vectors": "^7.10.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.39.0",
@@ -82,5 +82,5 @@
82
82
  "status": "beta",
83
83
  "year": 2021
84
84
  },
85
- "gitHead": "417b5a7ea7bd54a3b4f086fe0fc2ce8e8933c9b2\n"
85
+ "gitHead": "20909ffc46f23f61ec7647e8d27ed17752ce9828\n"
86
86
  }