probability-0.2.4.1: Probabilistic Functional Programming

Safe HaskellSafe-Inferred

Numeric.Probability.Example.TreeGrowth

Contents

Synopsis

Documentation

data Tree Source

Constructors

Alive Height 
Hit Height 
Fallen 

Instances

seed :: TreeSource

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

exact results

tree :: Int -> Tree -> Dist TreeSource

tree n : tree distribution after n generations

hist :: Int -> Expand TreeSource

hist n : history of tree distributions for n generations

simulation results

simTree :: Int -> Int -> RTrans TreeSource

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