package prbnmcn-basic-structures

  1. Overview
  2. Docs

Metric space

include Std
type t
val compare : t -> t -> int
val equal : t -> t -> bool
val pp : Format.formatter -> t -> unit
val hash : t -> int
val dist : t -> t -> float

dist is expected to be a proper distance function (symmetric, zero on the diagonal, verifying the triangular inequality).