Deprecated

In favour of

numhask-range

Numbers that are range representations https://github.com/tonyday567/numhask-range

Version on this page:0.0.4
LTS Haskell 12.26:0.2.3.1
Stackage Nightly 2018-09-28:0.2.3.1
Latest on Hackage:0.2.3.1

See all snapshots numhask-range appears in

BSD-3-Clause licensed by Tony Day
Maintained by [email protected]

Module documentation for 0.0.4

This version can be pinned in stack with:[email protected]:92b366e4bf5787343fa490e41c60ee53070cd618fbbd6ae7162051cbc97aceb7,2472

numhask-range

Build Status Hackage lts nightly

A Range a is a tuple representing an interval of a number space. A Range can be thought of as consisting of a low and high value, though low <= high isn’t strictly enforced, allowing a negative space so to speak. The library uses the ‘NumHask’ classes and thus most of the usual arithmetic operators can be used.

The library includes modules for:

  • Rect: rectangles, which are 2 dimensional ranges. This is very useful for diagrams
  • Hist: histograms. This may sound strange but buckets of a histogram is nothing more than a collection of contiguous Ranges with extra information for each bucket.