hakaru-0.1.2: A probabilistic programming embedded DSL

Safe HaskellSafe-Inferred

Language.Hakaru.Symbolic

Documentation

data Dist a Source

class Symbolic repr whereSource

Methods

real :: Double -> repr DoubleSource

bool :: Bool -> repr BoolSource

add, exp, mul, minus :: repr Double -> repr Double -> repr DoubleSource

sqrt, sin, cos :: repr Double -> repr DoubleSource

bind :: repr (Measure a) -> (repr a -> repr (Measure a)) -> repr (Measure a)Source

ret :: repr a -> repr (Measure a)Source

uniformD, normal, uniformC :: repr Double -> repr Double -> repr (Dist Double)Source

conditioned, unconditioned :: repr (Dist a) -> repr (Measure a)Source

Instances

type VarCounter = IntSource

newtype Maple a Source

Constructors

Maple 

Fields

unMaple :: Bool -> VarCounter -> String
 

Instances

view :: Maple a -> StringSource

test :: StringSource

test2 :: StringSource

test3 :: StringSource