/** * Mnemonist KDTree Typings * ========================= */ import {IArrayLike} from './utils/types'; export default class KDTree { // Members dimensions: number; size: number; visited: number; // Constructor private constructor(dimensions: number, build: any); // Methods nearestNeighbor(point: Array): V; kNearestNeighbors(k: number, point: Array): Array; linearKNearestNeighbors(k: number, point: Array): Array; inspect(): any; // Statics static from(iterable: Iterable<[I, Array]>, dimensions: number): KDTree; static fromAxes(axes: IArrayLike): KDTree; static fromAxes(axes: IArrayLike, labels: Array): KDTree; }