probability-0.2.2: Probabilistic Functional Programming
Source code
Contents
Index
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
Instances
Eq
T
Floating
T
Fractional
T
Num
T
Ord
T
Show
T
Random
T
ToFloat
T
percent
::
Float
->
T
Source
showPfix
::
RealFrac
prob =>
Int
-> prob ->
String
Source
roundRel
::
RealFrac
a =>
Int
-> a -> a
Source
(//)
:: (
Ord
a,
Show
a) =>
Dist
a ->
Int
->
IO
()
Source
Print distribution as table with configurable precision.
liftP
:: (
Float
->
Float
) ->
T
->
T
Source
liftP2
:: (
Float
->
Float
->
Float
) ->
T
->
T
->
T
Source
type
Dist
a =
T
T
a
Source
type
Spread
a = [a] ->
Dist
a
Source
type
RDist
a =
T
(
Dist
a)
Source
type
Trans
a = a ->
Dist
a
Source
type
Space
a =
Trace
(
Dist
a)
Source
type
Expand
a = a ->
Space
a
Source
type
RTrans
a = a ->
RDist
a
Source
type
RSpace
a =
T
(
Space
a)
Source
type
RExpand
a = a ->
RSpace
a
Source
Produced by
Haddock
version 2.4.2