probability-0.2.5.2: Probabilistic Functional Programming

Safe HaskellSafe
LanguageHaskell98

Numeric.Probability.Example.TreeGrowth

Contents

Synopsis

Documentation

data Tree Source #

Constructors

Alive Height 
Hit Height 
Fallen 
Instances
Eq Tree Source # 
Instance details

Defined in Numeric.Probability.Example.TreeGrowth

Methods

(==) :: Tree -> Tree -> Bool #

(/=) :: Tree -> Tree -> Bool #

Ord Tree Source # 
Instance details

Defined in Numeric.Probability.Example.TreeGrowth

Methods

compare :: Tree -> Tree -> Ordering #

(<) :: Tree -> Tree -> Bool #

(<=) :: Tree -> Tree -> Bool #

(>) :: Tree -> Tree -> Bool #

(>=) :: Tree -> Tree -> Bool #

max :: Tree -> Tree -> Tree #

min :: Tree -> Tree -> Tree #

Show Tree Source # 
Instance details

Defined in Numeric.Probability.Example.TreeGrowth

Methods

showsPrec :: Int -> Tree -> ShowS #

show :: Tree -> String #

showList :: [Tree] -> ShowS #

seed :: Tree Source #

tree growth simulation: start with seed and run for n generations

exact results

tree :: Int -> Tree -> Dist Tree Source #

tree n : tree distribution after n generations

hist :: Int -> Expand Tree Source #

hist n : history of tree distributions for n generations

simulation results

simTree :: Int -> Int -> RTrans Tree Source #

Since '(*.)' is overloaded for Trans and RChange, we can run the simulation ~. directly to n *. live.

sh2 :: IO () Source #

st2 :: IO () Source #