Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/proximity/common/distanceFunction.ts>Distance

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Distance
import { type Distance } from "https://deno.land/x/rimbu@1.1.0/proximity/common/distanceFunction.ts";

The distance between two values; a non-negative real number between:

  • 0 - meaning the two values are equal

  • Number.POSITIVE_INFINITY - the two values are so distant that can never match

definition: number