Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (15 sloc) 344 Bytes
module Reversible where
import Gillespie
import Data.Map
runReversible = gillespie pData reactions
-- Species.
a = "A"
b = "B"
-- Number of particles per species.
-- Steady state is (300, 100).
pData = fromList [(a, 100), (b, 200)]
-- Reactions.
reactions =
[ createReaction [a, a] [b] 0.1
, createReaction [b] [a, a] 45.0
]
Something went wrong with that request. Please try again.