Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ml-hclust

Package Overview
Dependencies
Maintainers
7
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-hclust - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

62

hclust.d.ts

@@ -1,35 +0,35 @@

declare module 'ml-hclust' {
export type AgglomerationMethod =
| 'single'
| 'complete'
| 'average'
| 'centroid'
| 'ward';
export interface AgnesOptions {
distanceFunction: (a: T, b: T) => number;
method: AgglomerationMethod;
isDistanceMatrix: boolean;
}
export type AgglomerationMethod =
| 'single'
| 'complete'
| 'average'
| 'centroid'
| 'ward';
export interface DianaOptions<T> {
distanceFunction: (a: T, b: T) => number;
}
export interface AgnesOptions<T> {
distanceFunction: (a: T, b: T) => number;
method: AgglomerationMethod;
isDistanceMatrix: boolean;
}
export interface Cluster {
children: Cluster[];
distance: number;
index: number[];
cut: (threshold: number) => Cluster[];
group: (minGroups: number) => Cluster;
traverse: (cb: (cluster: Cluster) => void) => void;
}
export interface DianaOptions<T> {
distanceFunction: (a: T, b: T) => number;
}
export function agnes<T = number[]>(
data: T[],
options?: AgnesOptions<T>
): Cluster;
export function diana<T = number[]>(
data: T[],
options?: DianaOptions<T>
): Cluster;
export interface Cluster {
children: Cluster[];
distance: number;
index: number[];
cut: (threshold: number) => Cluster[];
group: (minGroups: number) => Cluster;
traverse: (cb: (cluster: Cluster) => void) => void;
}
export function agnes<T = number[]>(
data: T[],
options?: AgnesOptions<T>
): Cluster;
export function diana<T = number[]>(
data: T[],
options?: DianaOptions<T>
): Cluster;

@@ -525,7 +525,3 @@ 'use strict';

// export * from './birch';
// export * './cure';
// export * from './chameleon';
exports.agnes = agnes;
exports.diana = diana;

@@ -0,1 +1,10 @@

## [2.0.1](https://github.com/mljs/hclust/compare/v2.0.0...v2.0.1) (2019-07-10)
### Bug Fixes
* correct TS definitions ([f50d820](https://github.com/mljs/hclust/commit/f50d820))
# [2.0.0](https://github.com/mljs/hclust/compare/v1.3.0...v2.0.0) (2019-05-02)

@@ -2,0 +11,0 @@

{
"name": "ml-hclust",
"version": "2.0.0",
"version": "2.0.1",
"description": "Hierarchical clustering algorithms",

@@ -5,0 +5,0 @@ "main": "hclust.js",

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