Skip to main content

A JS/TS implementation of the k-means and k-means++ clustering algorithm.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
6 hours ago (2.2.0)
f
k_means

Performs the K-means clustering algorithm on a set of points.

f
k_means_pp

Performs the K-means++ clustering algorithm on a set of points.

c
KMPP

KMPP class for performing k-means and k-means++ clustering.