@thi.ng/k-means
Advanced tools
Comparing version 0.5.7 to 0.5.8
# Change Log | ||
- **Last updated**: 2021-12-13T10:26:00Z | ||
- **Last updated**: 2022-03-11T12:13:49Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -5,0 +5,0 @@ |
@@ -11,5 +11,5 @@ import type { IDistance } from "@thi.ng/distance"; | ||
* | ||
* @param k | ||
* @param samples | ||
* @param opts | ||
* @param k - | ||
* @param samples - | ||
* @param opts - | ||
*/ | ||
@@ -32,6 +32,6 @@ export declare const kmeans: <T extends ReadonlyVec>(k: number, samples: T[], opts?: Partial<KMeansOpts> | undefined) => Cluster[]; | ||
* | ||
* @param k | ||
* @param samples | ||
* @param dist | ||
* @param rnd | ||
* @param k - | ||
* @param samples - | ||
* @param dist - | ||
* @param rnd - | ||
*/ | ||
@@ -43,3 +43,3 @@ export declare const initKmeanspp: <T extends ReadonlyVec>(k: number, samples: T[], dist?: IDistance<ReadonlyVec>, rnd?: import("@thi.ng/random/system").SystemRandom) => number[]; | ||
* | ||
* @param dim | ||
* @param dim - | ||
*/ | ||
@@ -46,0 +46,0 @@ export declare const means: CentroidStrategy; |
@@ -18,5 +18,5 @@ import { argmin } from "@thi.ng/distance/argmin"; | ||
* | ||
* @param k | ||
* @param samples | ||
* @param opts | ||
* @param k - | ||
* @param samples - | ||
* @param opts - | ||
*/ | ||
@@ -76,6 +76,6 @@ export const kmeans = (k, samples, opts) => { | ||
* | ||
* @param k | ||
* @param samples | ||
* @param dist | ||
* @param rnd | ||
* @param k - | ||
* @param samples - | ||
* @param dist - | ||
* @param rnd - | ||
*/ | ||
@@ -133,3 +133,3 @@ export const initKmeanspp = (k, samples, dist = DIST_SQ, rnd = SYSTEM) => { | ||
* | ||
* @param dim | ||
* @param dim - | ||
*/ | ||
@@ -136,0 +136,0 @@ export const means = (dim) => { |
{ | ||
"name": "@thi.ng/k-means", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"description": "Configurable k-means & k-medians (with k-means++ initialization) for n-D vectors", | ||
@@ -37,15 +37,15 @@ "type": "module", | ||
"dependencies": { | ||
"@thi.ng/api": "^8.3.3", | ||
"@thi.ng/distance": "^2.1.7", | ||
"@thi.ng/errors": "^2.1.3", | ||
"@thi.ng/random": "^3.2.3", | ||
"@thi.ng/vectors": "^7.4.3" | ||
"@thi.ng/api": "^8.3.4", | ||
"@thi.ng/distance": "^2.1.8", | ||
"@thi.ng/errors": "^2.1.4", | ||
"@thi.ng/random": "^3.2.4", | ||
"@thi.ng/vectors": "^7.5.0" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.19.2", | ||
"@thi.ng/testament": "^0.2.3", | ||
"@microsoft/api-extractor": "^7.19.4", | ||
"@thi.ng/testament": "^0.2.4", | ||
"rimraf": "^3.0.2", | ||
"tools": "^0.0.1", | ||
"typedoc": "^0.22.10", | ||
"typescript": "^4.5.3" | ||
"typedoc": "^0.22.13", | ||
"typescript": "^4.6.2" | ||
}, | ||
@@ -86,3 +86,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "1ba92c6b9509e74e509b4c0b875fc380a97bbbc1\n" | ||
"gitHead": "0fc692a3225c068aacafdc4cb6140cf603c67ad8\n" | ||
} |
@@ -54,3 +54,3 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
Package sizes (gzipped, pre-treeshake): ESM: 988 bytes | ||
Package sizes (gzipped, pre-treeshake): ESM: 987 bytes | ||
@@ -143,2 +143,2 @@ ## Dependencies | ||
© 2021 Karsten Schmidt // Apache Software License 2.0 | ||
© 2021 - 2022 Karsten Schmidt // Apache Software License 2.0 |
33268
Updated@thi.ng/api@^8.3.4
Updated@thi.ng/distance@^2.1.8
Updated@thi.ng/errors@^2.1.4
Updated@thi.ng/random@^3.2.4
Updated@thi.ng/vectors@^7.5.0