| Stability | experimental |
|---|---|
| Maintainer | Alexey Khudyakov <alexey.skladnoy@gmail.com> |
Data.Histogram.Bin
Description
Binning algorithms. This is mapping from set of interest to integer indices and approximate reverse.
Type class
Abstract binning algorithm. Following invariant is expected to hold:
toIndex . fromIndex == id
Reverse is not nessearily true.
Integer bins
Integer bins. This is inclusive interval [from,to]
Floating point bins
Floaintg point bins with equal sizes.
Arguments
| :: RealFrac f | |
| => f | Lower bound of range |
| -> Int | Number of bins |
| -> f | Upper bound of range |
| -> BinF f |
Create bins
Arguments
| :: RealFrac f | |
| => f | Begin of range |
| -> f | Size of step |
| -> f | Approximation of end of range |
| -> BinF f |
Create bins. Note that actual upper bound can differ from specified.
2D bins
2D bins. bin1 is binning along X axis and bin2 is one along Y axis.
Constructors
| Bin2D bin1 bin2 |