Constructors
constructor
- new KDTree(fingerprints, distanceFn, depth?): KDTree
Parameters
- fingerprints: Fingerprint[]
- distanceFn: ((pointA, pointB) => number)
- (pointA, pointB): number
Parameters
- pointA: number[]
- pointB: number[]
Returns number
- depth: number = 0
Accessors
balanceFactor
- get balanceFactor(): number
Returns number
Methods
nearest
- nearest(point, count?, maxDistance?): [AbsolutePosition, number][]
Parameters
- point: number[]
- count: number = 1
Optional
maxDistance: number
Returns [AbsolutePosition, number][]