Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DBScanOptions

Hierarchy

  • DBScanOptions

Index

Properties

Methods

Properties

epsilon?: number

The maximum distance between two points for them to be considered as being in the same neighborhood.

default

1

minPoints?: number

The minimum number of points in any group for them to be considered a distinct group. All other points are considered to be noise, and will receive a label of -1.

default

2

Methods

  • distance(p: number[], q: number[]): number
  • Distance calculation method of two points, default is euclidean distance. You may be interested to use one of the available distances from https://www.npmjs.com/package/ml-distance

    default

    euclidean

    Parameters

    • p: number[]
    • q: number[]

    Returns number