package prbnmcn-stats

  1. Overview
  2. Docs

Distances and divergences between measures.

val kl : (module Stdlib.Hashtbl.S with type key = 'a) -> 'a mes -> 'a mes -> float

Kullbacak-Leibler divergence. Note that this will diverge if the two measures do not have the same support.

val lp : (module Stdlib.Hashtbl.S with type key = 'a) -> p:r -> 'a mes -> 'a mes -> r

Lp distance.

  • raises Invalid_argument

    if p < 1

val linf : (module Stdlib.Hashtbl.S with type key = 'a) -> 'a mes -> 'a mes -> r

L-infinity distance