Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • NearestNeighbors

Index

Constructors

constructor

Properties

Private inputs

inputs: Matrix

Private numberOfNeighbors

numberOfNeighbors: number = 1

Private targets

targets: Matrix

Methods

Private distanceFunction

getDistanceFunction

getNumberOfNeighbors

  • getNumberOfNeighbors(): number

predict

Private predictOne

setDistanceFunction

  • setDistanceFunction(distanceFunction: function): void

setNumberOfNeighbors

  • setNumberOfNeighbors(numberOfNeighbors: number): void

train

Generated using TypeDoc