@@ -205,7 +205,7 @@ function rand(rng::AbstractRNG, dist::AbstractaDDM; fixate, Δt = 0.001)
205205 while abs(v) < α
206206 t += Δt
207207 location = fixate()
208- v += increment(rng, dist, location)
208+ v += increment! (rng, dist, location)
209209 end
210210 choice = (v < α) + 1
211211 return (; choice, rt = t)
@@ -275,10 +275,10 @@ function survivor(d::AbstractaDDM, choice::Int, ub::Real, args...; fixate, kwarg
275275 return survivor(Random. default_rng(), d, choice, fixate, ub, args... ; fixate, kwargs... )
276276end
277277
278- increment(dist:: AbstractaDDM , location) = increment(Random. default_rng(), dist, location)
278+ increment! (dist:: AbstractaDDM , location) = increment! (Random. default_rng(), dist, location)
279279
280280"""
281- increment(rng::AbstractRNG, dist::aDDM, location)
281+ increment! (rng::AbstractRNG, dist::aDDM, location)
282282
283283Returns the change evidence for a single iteration.
284284
@@ -288,7 +288,7 @@ Returns the change evidence for a single iteration.
288288- `dist::aDDM`: a model object for the attentional drift diffusion model
289289- `location`: an index for fixation location
290290"""
291- function increment(rng:: AbstractRNG , dist:: aDDM , location)
291+ function increment! (rng:: AbstractRNG , dist:: aDDM , location)
292292 (; σ, ν, θ, Δ) = dist
293293 # option 1
294294 if location == 1
@@ -349,7 +349,7 @@ function simulate(
349349 while abs(x) < α
350350 t += Δt
351351 location = _fixate()
352- x += increment(model, location)
352+ x += increment! (model, location)
353353 push!(evidence, x)
354354 push!(time_steps, t)
355355 end
0 commit comments