package binning

All checked builds pass
  1. Overview
  2. Docs
A datastructure to accumulate values in bins

Install

dune-project
 Dependency

Authors

Maintainers

Sources

binning-v0.0.0.tbz
sha256=786fb172db1b73b950e6914e52d27cae3356ff4ea0ca0c0b003abbc9cf187ff7
sha512=27f449c32a308cf03318a2ccbcefaeafd6730c8f8c80d91038ea4f8fd34721a564fa9b2d1c12b7dae989a4076f2b3c97cc8dc36046405703fe0ba152e6ef10ad

Description

This library is useful for counting elements by categories, constructing relations and transposing them. Binning are constructed from streams of values. A binning can be seen as a generalized histogram: values are mapped to bins, and each bin keeps a summary value that is updated when an element is added (like a count, the list of elements, their mean, etc).

Tags

data-structures

Added to opam-repository:

README

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

Dependencies (2)

  1. dune >= "2.5"
  2. ocaml >= "4.08"

Dev Dependencies

None

Optional Dependencies

None

Used by (2)

  1. biotk >= "0.2.0"
  2. phylogenetics >= "0.2.0"

Conflicts

None

Build status

Results of building binning with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.0.0 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure