@thi.ng/k-means
Advanced tools
Comparing version 0.7.9 to 0.7.10
# Change Log | ||
- **Last updated**: 2024-10-05T12:12:32Z | ||
- **Last updated**: 2024-10-05T13:06:12Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -12,2 +12,8 @@ | ||
### [0.7.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/k-means@0.7.10) (2024-10-05) | ||
#### ♻️ Refactoring | ||
- add explicit type casts (TS5.6.2) ([dcbdd60](https://github.com/thi-ng/umbrella/commit/dcbdd60)) | ||
## [0.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/k-means@0.7.0) (2024-07-25) | ||
@@ -14,0 +20,0 @@ |
import type { IDistance } from "@thi.ng/distance"; | ||
import type { IRandom } from "@thi.ng/random"; | ||
import type { ReadonlyVec } from "@thi.ng/vectors"; | ||
@@ -36,3 +37,3 @@ import type { CentroidStrategy, Cluster, KMeansOpts } from "./api.js"; | ||
*/ | ||
export declare const initKmeanspp: <T extends ReadonlyVec>(k: number, samples: T[], dist?: IDistance<ReadonlyVec>, rnd?: import("@thi.ng/random").SystemRandom) => number[]; | ||
export declare const initKmeanspp: <T extends ReadonlyVec>(k: number, samples: T[], dist?: IDistance<ReadonlyVec>, rnd?: IRandom) => number[]; | ||
/** | ||
@@ -39,0 +40,0 @@ * Default centroid strategy forming new centroids by averaging the position of |
{ | ||
"name": "@thi.ng/k-means", | ||
"version": "0.7.9", | ||
"version": "0.7.10", | ||
"description": "Configurable k-means & k-medians (with k-means++ initialization) for n-D vectors", | ||
@@ -88,3 +88,3 @@ "type": "module", | ||
}, | ||
"gitHead": "11ae480076e61a2263f5730ffb37dfddbf01c7d1\n" | ||
"gitHead": "9a32147fce4bd1e5f98dffb04a452576f9984de8\n" | ||
} |
34285
257