@types/node-kmeans
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/node-kmeans

Weekly Downloads

650

Version

1.1.2

License

MIT

Unpacked Size

3.4 kB

Total Files

5

Last publish

Collaborators

  • types