Chart-1.5.4: A library for generating 2D Charts and Plots

Safe Haskell | None
Language | Haskell98

Numeric.Histogram

Synopsis

- 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

type Range a = (a, a) Source

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

histWeightedValues :: RealFrac a => a -> a -> Int -> [(Double, a)] -> Vector (Range a, Double) Source

'histValues a b n vs' returns the bins for the weighted histogram of `vs` on the range from `a` to `b` with `n` bins

histWithBins :: (Num w, RealFrac a) => Vector (Range a) -> [(w, a)] -> Vector (Range a, w) Source

'histWithBins bins xs' is the histogram of weighted values `xs` with `bins`