probability-0.2.7: Probabilistic Functional Programming

Safe HaskellSafe
LanguageHaskell98

Numeric.Probability.Example.TreeGrowth

Synopsis

Documentation

type Height = Int Source #

data Tree Source #

Constructors

Instances
Instance details

Defined in Numeric.Probability.Example.TreeGrowth

Methods

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

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

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 #

Instance details

Defined in Numeric.Probability.Example.TreeGrowth

Methods

showsPrec :: Int -> Tree -> ShowS #

show :: Tree -> String #

showList :: [Tree] -> ShowS #

grow :: Trans Tree Source #

hit :: Trans Tree Source #

fall :: Trans Tree Source #

evolve :: Trans Tree Source #

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.

simHist :: Int -> Int -> RExpand Tree Source #

t2 :: Dist Tree Source #

h2 :: Space Tree Source #

sh2 :: IO () Source #

st2 :: IO () Source #

height :: Tree -> Int Source #

p1 :: Vis Source #

p2 :: Vis Source #

p3 :: Vis Source #

p4 :: Vis Source #

p5 :: Vis Source #

p6 :: Vis Source #

heightAtTime :: Int -> Plot Source #

heightCurve :: (Int, Color) -> Plot Source #

done :: Tree -> Bool Source #

ev5 :: Tree -> Dist Tree Source #

AltStyle によって変換されたページ (->オリジナル) /