@thi.ng/k-means 0.6.55 → 0.6.57
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 +1 -1
- package/kmeans.d.ts +1 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
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.57",
|
|
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.18",
|
|
39
|
+
"@thi.ng/distance": "^2.4.42",
|
|
40
|
+
"@thi.ng/errors": "^2.4.11",
|
|
41
|
+
"@thi.ng/random": "^3.6.25",
|
|
42
|
+
"@thi.ng/vectors": "^7.10.0"
|
|
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": "7426e2ae6fca5482c6eaf649872296fc89955374\n"
|
|
86
86
|
}
|