Installation
npm install --save @types/node-kmeans
Summary
This package contains type definitions for node-kmeans (https://www.npmjs.com/package/node-kmeans).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-kmeans.
index.d.ts
export interface ClusterizeOptions {
k: number;
seed?: number;
distance?: (a: number[], b: number[]) => number;
}
export interface ClusteringOutput {
centroid: number[];
cluster: number[][];
clusterInd: number[];
}
export function clusterize(
vector: number[] | number[][],
options: ClusterizeOptions,
callback: (err: Error | null, result?: ClusteringOutput[]) => void,
): void;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by 3aquin3.