@hackage numhask-range0.1.0
Numbers that are range representations
Deprecated
Dependencies (9)
- QuickCheck
- adjunctions
- base >=4.7 && <4.11
- containers
- distributive
- formatting Show all…
Dependents (2)
@hackage/numhask-histogram, @hackage/chart-unit
numhask-range
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 diagramsHist: histograms. This may sound strange but buckets of a histogram is nothing more than a collection of contiguousRangeswith extra information for each bucket.