Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

ml-hclust

Package Overview
Dependencies
Maintainers
7
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-hclust

Hierarchical clustering algorithms

latest
Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
14K
13.84%
Maintainers
7
Weekly downloads
 
Created
Source

ml-hclust

NPM version npm download test coverage license

Hierarchical clustering algorithms in JavaScript.

Installation

npm install ml-hclust

API Documentation

Usage

AGNES

const { agnes } = require('ml-hclust');

const tree = agnes(data, {
  method: 'ward',
});

Implemented algorithms

  • AGNES (AGglomerative NESting): Continuously merge nodes that have the least dissimilarity.
  • DIANA (Divisive ANAlysis): The process starts at the root with all the points as one cluster and recursively splits the higher level clusters to build the dendrogram.
  • BIRCH (Balanced Iterative Reducing and Clustering using Hierarchies): Incrementally construct a CF (Clustering Feature) tree, a hierarchical data structure for multiphase clustering
  • CURE (Clustering Using REpresentatives):
  • CHAMELEON

Test

npm install
npm test

Authors

License

MIT

Keywords

cluster

FAQs

Package last updated on 26 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts