hclust
Hierarchical clustering algorithms in JavaScript.
Installation
npm i ml-hclust
API Documentation
Usage
AGNES
const { agnes } = require('ml-hclust');
const tree = agnes(data, {
method: 'ward',
});
Implemented algorithms
- <input checked="" disabled="" type="checkbox"> AGNES (AGglomerative NESting): Continuously merge nodes that have the least dissimilarity.
- <input disabled="" type="checkbox"> 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.
- <input disabled="" type="checkbox"> BIRCH (Balanced Iterative Reducing and Clustering using Hierarchies): Incrementally construct a CF (Clustering Feature) tree, a hierarchical data structure for multiphase clustering
- <input disabled="" type="checkbox"> CURE (Clustering Using REpresentatives):
- <input disabled="" type="checkbox"> CHAMELEON
Test
npm install
npm test