random-variates-0.1.4.0: "Uniform RNG => Non-Uniform RNGs"

Safe HaskellSafe
LanguageHaskell2010

Stochastic.Tools

Documentation

maybeHead :: [a] -> Maybe a Source

headOrElse :: a -> [a] -> a Source

mapTuple :: (a -> b) -> (c -> d) -> (a, c) -> (b, d) Source

stirlingsApprox :: (Floating r, Ord r) => r -> r Source

acc :: (a -> a -> a) -> a -> [a] -> [a] Source

statefully :: (g -> (a, g)) -> Int -> g -> ([a], g) Source

statefullyTakeWhile :: (g -> (a, g)) -> ([a] -> Bool) -> g -> ([a], g) Source

maxf :: Ord b => [b] -> b Source

minf :: Ord b => [b] -> b Source

accMap :: (b -> a -> b) -> (a -> b) -> [a] -> [b] Source

biFold :: (a -> a -> b) -> [a] -> [b] Source

dependentMap :: (a -> a -> b) -> (a -> b) -> [a] -> [b] Source

bin :: (Double -> Double) -> [Double] -> [(Double, Int)] Source

group :: Ord a => [a] -> [(a, Int)] Source

groupSeq :: Eq a => [a] -> [(a, Int)] Source