@thi.ng/k-means 0.7.7 → 0.7.9
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
|
@@ -33,7 +33,7 @@ export declare const kmeans: <T extends ReadonlyVec>(k: number, samples: T[], op
|
|
|
33
33
|
* @param dist -
|
|
34
34
|
* @param rnd -
|
|
35
35
|
*/
|
|
36
|
-
export declare const initKmeanspp: <T extends ReadonlyVec>(k: number, samples: T[], dist?: IDistance<ReadonlyVec>, rnd?: import("@thi.ng/random
|
|
36
|
+
export declare const initKmeanspp: <T extends ReadonlyVec>(k: number, samples: T[], dist?: IDistance<ReadonlyVec>, rnd?: import("@thi.ng/random").SystemRandom) => number[];
|
|
37
37
|
/**
|
|
38
38
|
* Default centroid strategy forming new centroids by averaging the position of
|
|
39
39
|
* participating samples.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/k-means",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.9",
|
|
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",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.11.
|
|
40
|
-
"@thi.ng/distance": "^2.4.
|
|
41
|
-
"@thi.ng/errors": "^2.5.
|
|
42
|
-
"@thi.ng/random": "^4.0
|
|
43
|
-
"@thi.ng/vectors": "^7.12.
|
|
39
|
+
"@thi.ng/api": "^8.11.11",
|
|
40
|
+
"@thi.ng/distance": "^2.4.89",
|
|
41
|
+
"@thi.ng/errors": "^2.5.17",
|
|
42
|
+
"@thi.ng/random": "^4.1.0",
|
|
43
|
+
"@thi.ng/vectors": "^7.12.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@microsoft/api-extractor": "^7.47.
|
|
47
|
-
"esbuild": "^0.
|
|
48
|
-
"typedoc": "^0.26.
|
|
49
|
-
"typescript": "^5.
|
|
46
|
+
"@microsoft/api-extractor": "^7.47.9",
|
|
47
|
+
"esbuild": "^0.24.0",
|
|
48
|
+
"typedoc": "^0.26.7",
|
|
49
|
+
"typescript": "^5.6.2"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"cluster",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"year": 2021,
|
|
86
86
|
"screenshot": "examples/kmeans-viz.jpg"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "11ae480076e61a2263f5730ffb37dfddbf01c7d1\n"
|
|
89
89
|
}
|