Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDistance<T>

Distance metric implementation & conversions from/to raw distances.

Type parameters

  • T

Hierarchy

  • IDistance

Implemented by

Index

Properties

Methods

Properties

Readonly metric

metric: Metric<T>

The actual distance function metric.

Methods

from

  • from(x: number): number
  • Converts x from the metric of this instance into an Eucledian value.

    Parameters

    • x: number

    Returns number

to

  • to(x: number): number
  • Converts Eucledian distance x into the metric of this instance.

    Parameters

    • x: number

    Returns number

Generated using TypeDoc