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

Safe HaskellNone
LanguageHaskell98

Numeric.Histogram

Synopsis

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