@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 +1 -1
- package/README.md +7 -3
- package/kmeans.d.ts +1 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,9 +7,13 @@
|
|
|
7
7
|

|
|
8
8
|
[](https://mastodon.thi.ng/@toxi)
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
39
|
-
"@thi.ng/distance": "^2.4.
|
|
40
|
-
"@thi.ng/errors": "^2.4.
|
|
41
|
-
"@thi.ng/random": "^3.6.
|
|
42
|
-
"@thi.ng/vectors": "^7.
|
|
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": "
|
|
85
|
+
"gitHead": "20909ffc46f23f61ec7647e8d27ed17752ce9828\n"
|
|
86
86
|
}
|