probability-0.2.2: Probabilistic Functional Programming

Numeric.Probability.Percentage

Contents

Description

Number type based on Float with formatting in percents.

Synopsis

Probabilities

newtype T Source

Constructors

Cons Float 

showPfix :: RealFrac prob => Int -> prob -> StringSource

roundRel :: RealFrac a => Int -> a -> aSource

(//) :: (Ord a, Show a) => Dist a -> Int -> IO ()Source

Print distribution as table with configurable precision.

liftP :: (Float -> Float) -> T -> TSource

liftP2 :: (Float -> Float -> Float) -> T -> T -> TSource

type Dist a = T T aSource

type Spread a = [a] -> Dist aSource

type RDist a = T (Dist a)Source

type Trans a = a -> Dist aSource

type Space a = Trace (Dist a)Source

type Expand a = a -> Space aSource

type RTrans a = a -> RDist aSource

type RSpace a = T (Space a)Source

type RExpand a = a -> RSpace aSource