{"id":19509834,"url":"https://github.com/mleko/kmeans-clust","last_synced_at":"2025-04-26T03:32:03.669Z","repository":{"id":57157882,"uuid":"156349061","full_name":"mleko/kmeans-clust","owner":"mleko","description":"k-means clustering in TypeScript","archived":false,"fork":false,"pushed_at":"2018-11-19T19:50:59.000Z","size":50,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T14:06:19.516Z","etag":null,"topics":["clustering","k-means","kmeans","kmeans-clustering","kmeans-clustering-algorithm","kmeans-plus-plus","typescript"],"latest_commit_sha":null,"homepage":"https://mleko.gitlab.io/kmeans-clust/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mleko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-06T08:14:26.000Z","updated_at":"2020-07-31T11:17:21.000Z","dependencies_parsed_at":"2022-08-28T20:21:40.041Z","dependency_job_id":null,"html_url":"https://github.com/mleko/kmeans-clust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mleko%2Fkmeans-clust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mleko%2Fkmeans-clust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mleko%2Fkmeans-clust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mleko%2Fkmeans-clust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mleko","download_url":"https://codeload.github.com/mleko/kmeans-clust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250926834,"owners_count":21509045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clustering","k-means","kmeans","kmeans-clustering","kmeans-clustering-algorithm","kmeans-plus-plus","typescript"],"created_at":"2024-11-10T23:13:31.931Z","updated_at":"2025-04-26T03:32:01.930Z","avatar_url":"https://github.com/mleko.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kmeans-clust\n\u003e k-means clustering in TypeScript\n\n[![NPM](https://nodei.co/npm/kmeans-clust.png?compact=true)](https://nodei.co/npm/kmeans-clust/)\n[![Build Status](https://travis-ci.org/mleko/kmeans-clust.svg?branch=master)](https://travis-ci.org/mleko/kmeans-clust)\n\n### Installation\n\nLibrary can be installed via [npm](https://www.npmjs.com/package/kmeans-clust).\n\n```\n$ npm install kmeans-clust\n```\n\n### Example\n\n```typescript\nimport {kmeans} from \"kmeans-clust\";\nconst points = [[0], [1], [9], [10]];\nkmeans(points, 2)\n //=\u003e [ { centroid: [ 0.5 ], points: [ [Array], [Array] ], error: 1 },\n //=\u003e   { centroid: [ 9.5 ], points: [ [Array], [Array] ], error: 1 } ]\n```\n\n#### To run graphic example execute command\n```\n$ npm run example\n```\n\nLive example is available https://mleko.gitlab.io/kmeans-clust/\n\n### [License (MIT)](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmleko%2Fkmeans-clust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmleko%2Fkmeans-clust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmleko%2Fkmeans-clust/lists"}