Safe Haskell | None |
---|---|

Language | Haskell98 |

- type Range a = (a, a)
- binBounds :: RealFrac a => a -> a -> Int -> [Range a]
- histValues :: RealFrac a => a -> a -> Int -> [a] -> Vector (Range a, Int)
- histWeightedValues :: RealFrac a => a -> a -> Int -> [(Double, a)] -> Vector (Range a, Double)
- histWithBins :: (Num w, RealFrac a) => Vector (Range a) -> [(w, a)] -> Vector (Range a, w)

# Documentation

binBounds :: RealFrac a => a -> a -> Int -> [Range a] Source #

'binBounds a b n' generates bounds for `n`

bins spaced linearly between
`a`

and `b`

histValues :: RealFrac a => a -> a -> Int -> [a] -> Vector (Range a, Int) Source #

'histValues a b n vs' returns the bins for the histogram of
`vs`

on the range from `a`

to `b`

with `n`

bins