New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/k-means

Package Overview
Dependencies
Maintainers
0
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/k-means - npm Package Compare versions

Comparing version 0.7.9 to 0.7.10

8

CHANGELOG.md
# 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 @@

3

kmeans.d.ts
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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc