Class DistanceFunctionAbstract

Constructors

Methods

  • Canberra distance function

    Parameters

    • pointA: number[]

      n-dimensional point

    • pointB: number[]

      n-dimensional point

    Returns number

    distance

  • Chebyshev distance function

    Parameters

    • pointA: number[]

      n-dimensional point

    • pointB: number[]

      n-dimensional point

    Returns number

    distance

  • Euclidean distance function

    Parameters

    • pointA: number[]

      n-dimensional point

    • pointB: number[]

      n-dimensional point

    Returns number

    distance

  • Manhattan distance function

    Parameters

    • pointA: number[]

      n-dimensional point

    • pointB: number[]

      n-dimensional point

    Returns number

    distance