Stability | experimental |
---|---|
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Safe Haskell | Safe-Infered |
Tested with: GHC 7.0.3
This module defines the parameters of simulation experiments.
- newParameter :: IO a -> IO (Dynamics a)
- newTableParameter :: Array Int a -> IO (Dynamics a)
- newIndexedParameter :: (Int -> IO a) -> IO (Dynamics a)
Documentation
newParameter :: IO a -> IO (Dynamics a)Source
Create a thread-safe parameter that returns always the same value during the simulation run, where the value is recalculated for each new run.
newTableParameter :: Array Int a -> IO (Dynamics a)Source
Create a thread-safe parameter that returns always the same value during the simulation run, where the value is taken consequently from the specified table based on the number of the current run starting from zero. After all values from the table are used, it takes the first value of the table, then the second one and so on.