Comparing version 2.0.0 to 2.0.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
37131
0
1062