probability-0.2.2.1: Probabilistic Functional ProgrammingSource codeContentsIndex
Numeric.Probability.Percentage
Contents
Probabilities
Description
Number type based on Float with formatting in percents.
Synopsis
newtype T = Cons Float
percent :: Float -> T
showPfix :: RealFrac prob => Int -> prob -> String
roundRel :: RealFrac a => Int -> a -> a
(//) :: (Ord a, Show a) => Dist a -> Int -> IO ()
liftP :: (Float -> Float) -> T -> T
liftP2 :: (Float -> Float -> Float) -> T -> T -> T
type Dist a = T T a
type Spread a = [a] -> Dist a
type RDist a = T (Dist a)
type Trans a = a -> Dist a
type Space a = Trace (Dist a)
type Expand a = a -> Space a
type RTrans a = a -> RDist a
type RSpace a = T (Space a)
type RExpand a = a -> RSpace a
Probabilities
newtype T Source
Constructors
Cons Float
show/hide Instances
percent :: Float -> TSource
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
Produced by Haddock version 2.4.2