-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Learning Algorithms -- -- Learning Algorithms @package learn @version 0.1 module Numeric.Learn type Prob = Ratio Integer newtype Distro a Distro :: Map a Prob -> Distro a runDistro :: Distro a -> Map a Prob data Result Positive :: Result Negative :: Result uniformPDF :: Ord k => [k] -> Distro k uniformPrior :: Integer -> Distro Prob singleCoin :: Distro Prob -> Result -> Distro Prob coins :: Distro Prob -> Int -> Int -> Distro Prob listify :: Distro k -> [(k, Prob)] instance Eq a => Eq (Distro a) instance Ord a => Ord (Distro a) instance (Ord a, Read a) => Read (Distro a) instance Show a => Show (Distro a)