Basic Example

SequentialSamplingModels.jl automatically loads plotting functionality for SSMs when Plots is active in your Julia session . As a simple starting point, the code block below illustrates some basic functionality:

using SequentialSamplingModels
using Plots
using Random
Random.seed!(85)

ν = [1.0,0.50]
k = 0.50
A = 1.0
τ = 0.30

dist = RDM(;ν, k, A, τ)
histogram(dist; xlims=(0,2.5))
plot!(dist; t_range=range(.301, 2.5, length=100))
Example block output

You can overwrite the default plot options by passing keyword arguments. The code block below provides an example:

using SequentialSamplingModels
using Plots
using Random
Random.seed!(85)

ν = [1.0,0.50]
k = 0.50
A = 1.0
τ = 0.30

dist = RDM(;ν, k, A, τ)
histogram(dist; xlims=(0,2.5))
plot!(dist; t_range=range(.301, 2.5, length=100), color=:darkorange)
Example block output