package binning

  1. Overview
  2. Docs
On This Page
  1. Installation
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Binning

A tiny library to count objects (for histograms) or sort them by category (build an association or relation). Here is a typical use:

let histogram xs =
  List.to_seq xs
  |> Binning.counts
  |> List.of_seq
(* val histogram : 'a list -> ('a * int) list = <fun> *)

Installation

opam install binning
OCaml

Innovation. Community. Security.