sdwfrost / Gillespie.jl

Stochastic Gillespie-type simulations using Julia
Other
61 stars 24 forks source link

Only increases? #9

Closed ChrisRackauckas closed 7 years ago

ChrisRackauckas commented 7 years ago

Is there a reason this model only increases? I thought it would increase 2/3 of the time, and decrease 1/3.

x0 = [10]
nu = reshape([1;-1],2,1)
parms = [1.0;0.5]
tf = 3.0
srand(1234)

result = ssa(x0,F,nu,parms,tf)
data = ssa_data(result)
data[:x1][end]
sdwfrost commented 7 years ago

What does your F function look like?

ChrisRackauckas commented 7 years ago

Silly mistake.