@thi.ng/k-means 0.5.12 → 0.5.13
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/kmeans.d.ts +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
package/kmeans.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { CentroidStrategy, Cluster, KMeansOpts } from "./api.js";
|
|
|
12
12
|
* @param samples -
|
|
13
13
|
* @param opts -
|
|
14
14
|
*/
|
|
15
|
-
export declare const kmeans: <T extends ReadonlyVec>(k: number, samples: T[], opts?: Partial<KMeansOpts>
|
|
15
|
+
export declare const kmeans: <T extends ReadonlyVec>(k: number, samples: T[], opts?: Partial<KMeansOpts>) => Cluster[];
|
|
16
16
|
/**
|
|
17
17
|
* k-means++ initialization / selection of initial cluster centroids. Default
|
|
18
18
|
* centroid initialization method for {@link kmeans}.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/k-means",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.13",
|
|
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",
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.3.
|
|
38
|
-
"@thi.ng/distance": "^2.1.
|
|
39
|
-
"@thi.ng/errors": "^2.1.
|
|
40
|
-
"@thi.ng/random": "^3.3.
|
|
41
|
-
"@thi.ng/vectors": "^7.5.
|
|
37
|
+
"@thi.ng/api": "^8.3.7",
|
|
38
|
+
"@thi.ng/distance": "^2.1.13",
|
|
39
|
+
"@thi.ng/errors": "^2.1.7",
|
|
40
|
+
"@thi.ng/random": "^3.3.1",
|
|
41
|
+
"@thi.ng/vectors": "^7.5.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@microsoft/api-extractor": "^7.
|
|
45
|
-
"@thi.ng/testament": "^0.2.
|
|
44
|
+
"@microsoft/api-extractor": "^7.25.0",
|
|
45
|
+
"@thi.ng/testament": "^0.2.8",
|
|
46
46
|
"rimraf": "^3.0.2",
|
|
47
47
|
"tools": "^0.0.1",
|
|
48
|
-
"typedoc": "^0.22.
|
|
49
|
-
"typescript": "^4.
|
|
48
|
+
"typedoc": "^0.22.17",
|
|
49
|
+
"typescript": "^4.7.3"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"cluster",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"status": "beta",
|
|
83
83
|
"year": 2021
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "9e516d30a1a537e027a6b3d78bf9121bc5831d31\n"
|
|
86
86
|
}
|