Skip to content

Commit f4e8b36

Browse files
committed
specify bounds of parameters
1 parent c8208de commit f4e8b36

18 files changed

+91
-91
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SequentialSamplingModels"
22
uuid = "0e71a2a6-2b30-4447-8742-d083a85e82d1"
33
authors = ["itsdfish"]
4-
version = "0.11.8"
4+
version = "0.11.9"
55

66
[deps]
77
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"

src/AttentionalDiffusion.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ An object for the attentional diffusion model.
55
66
# Parameters
77
8-
- `ν`: relative decision values (i.e., drift rates)
9-
- `σ`: standard deviation of noise in evidence accumulation
10-
- `Δ`: constant of evidence accumulation speed (evidence per ms)
11-
- `α`: evidence threshold
12-
- `z`: initial evidence
13-
- `θ`: bias towards attended alternative (lower indicates more bias)
14-
- `τ`: non-decision time
8+
- `ν::Vector{T}`: relative decision values (i.e., drift rates). ν ∈ ℝⁿ.
9+
- `σ::T`: standard deviation of noise in evidence accumulation. σ ∈ ℝ.
10+
- `Δ::T`: constant of evidence accumulation speed (evidence per ms). Δ ∈ ℝ.
11+
- `α::T`: evidence threshold. α ∈ ℝ.
12+
- `z::T`: initial evidence. z ∈ [0, α]
13+
- `θ::T`: bias towards attended alternative (lower indicates more bias)
14+
- `τ::T`: non-decision time. τ ∈ [0, min_rt]
1515
1616
# Constructors
1717

src/CircularDDM.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ A circular drift diffusion model (CDDM) for continous responding. CCDM is typica
66
working memory tasks. Currently supports the 2D case.
77
88
# Parameters
9-
- `ν`: a vector drift rates. ν₁ is the mean drift rate along the x-axis; ν₂ is the mean drift rate along the y-axis.
10-
- `σ`: intra-trial drift rate variability
11-
- `η`: a vector across-trial standard deviations of drift rates. η₁ is the standard deviation of drift rate along the x-axis;
12-
η₂ is the standard deviation of drift rate along the y-axis
13-
- `α`: response boundary as measured by the radious of a circle
14-
- `τ`: mean non-decision time
9+
- `ν::T`: a vector drift rates. ν₁ is the mean drift rate along the x-axis; ν₂ is the mean drift rate along the y-axis. ν ∈ ℝⁿ.
10+
- `σ::T`: intra-trial drift rate variability. σ ∈ ℝ.
11+
- `η::T`: a vector across-trial standard deviations of drift rates. η₁ is the standard deviation of drift rate along the x-axis;
12+
η₂ is the standard deviation of drift rate along the y-axis. η ∈ ℝⁿ⁺.
13+
- `α::T`: response boundary as measured by the radius of a circle. α ∈ ℝ⁺.
14+
- `τ::T`: mean non-decision time. τ ∈ [0, min_rt].
1515
1616
# Constructors
1717

src/ClassicMDFT.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
A model type for Multiattribute Decision Field Theory.
66
77
# Parameters
8-
- `σ = 1.0`: diffusion noise
9-
- `α = 15.0`: evidence threshold
10-
- `τ = .30`: non-decision time
11-
- `w::Vector{T}`: attention weights vector where each element corresponds to the attention given to the corresponding dimension
8+
- `σ::T = 1.0`: diffusion noise. σ ∈ ℝ⁺.
9+
- `α::T = 15.0`: evidence threshold. α ∈ ℝ⁺.
10+
- `τ::T = .30`: non-decision time. τ ∈ [0, min_rt].
11+
- `w::Vector{T}`: attention weights vector where each element corresponds to the attention given to the corresponding dimension. wᵢ ∈ [0,1], ∑wᵢ = 1.
1212
- `S::Array{T, 2}`: feedback matrix allowing self-connections and interconnections between alternatives. Self-connections range from zero to 1, where s_ij < 1 represents decay. Interconnections
1313
between options i and j where i ≠ j are inhibatory if s_ij < 0.
1414
- `C::Array{T, 2}`: contrast weight matrix where c_ij is the contrast weight when comparing options i and j.

src/DDM.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Model object for the standard Drift Diffusion Model.
55
66
# Parameters
77
8-
- `ν`: drift rate. Average slope of the information accumulation process. The drift gives information about the speed and direction of the accumulation of information. Typical range: -5 < ν < 5
9-
- `α`: boundary threshold separation. The amount of information that is considered for a decision. Typical range: 0.5 < α < 2
10-
- `z`: starting point. Indicator of an an initial bias towards a decision. The z parameter is relative to a (i.e. it ranges from 0 to 1).
11-
- `τ`: non-decision time. The duration for a non-decisional processes (encoding and response execution). Typical range: 0.1 < τ < 0.5
8+
- `ν::T`: drift rate. Average slope of the information accumulation process. The drift gives information about the speed and direction of the accumulation of information. ν ∈ ℝ. Typical range: ν ∈ [-5,5].
9+
- `α::T`: boundary threshold separation. The amount of information that is considered for a decision. α ∈ ℝ⁺. Typical range: α ∈ [.5, 2].
10+
- `z::T`: starting point. Indicator of an an initial bias towards a decision. The z ∈ [0,1] parameter is relative to α.
11+
- `τ::T`: non-decision time. The duration for a non-decisional processes (encoding and response execution). τ ∈ [0, min_rt]. Typical range: τ ∈ [.1,.5].
1212
1313
# Constructors
1414

src/LBA.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ A model object for the linear ballistic accumulator.
55
66
# Parameters
77
8-
- `ν::Vector{T}`: a vector of drift rates
9-
- `σ::T1`: a scalar or vector of drift rate standard deviation
10-
- `A::T`: max start point
11-
- `k::T`: A + k = b, where b is the decision threshold
12-
- `τ::T`: an encoding-response offset
8+
- `ν::Vector{T}`: a vector of drift rates. α ∈ ℝ⁺.
9+
- `σ::T1`: a scalar or vector of drift rate standard deviation. σ ∈ ℝ⁺.
10+
- `A::T`: max start point. A ∈ ℝ⁺.
11+
- `k::T`: A + k = b, where b is the decision threshold. k ∈ ℝ⁺.
12+
- `τ::T`: an encoding-response offset. τ ∈ [0, min_rt].
1313
1414
# Constructors
1515

src/LCA.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ A model type for the Leaky Competing Accumulator.
55
66
# Parameters
77
8-
- `ν`: drift rates
9-
- `σ`: diffusion noise
10-
- `β`: lateral inhabition
11-
- `λ`: leak rate
12-
- `α`: evidence threshold
13-
- `τ`: non-decision time
8+
- `ν::Vector{T}`: drift rates
9+
- `σ::T`: diffusion noise
10+
- `β::T`: lateral inhabition
11+
- `λ::T`: leak rate
12+
- `α::T`: evidence threshold
13+
- `τ::T`: non-decision time. τ ∈ [0, min_rt]
1414
1515
# Constructors
1616

src/LNR.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""
2-
LNR{T<:Real} <: AbstractLNR
2+
LNR{T <: Real, T1 <: Union{<:T, Vector{<:T}}} <: AbstractLNR{T, T1}
33
44
# Parameters
55
6-
- `ν`: a vector of means in log-space
7-
- `σ`: a scalar or vector of standard deviation parameter in log-space
8-
- `τ`: a encoding-response offset
6+
- `ν::Vector{T}`: a vector of means in log-space. ν ∈ ℝⁿ.
7+
- `σ::T1`: a scalar or vector of standard deviation parameter in log-space. σ ∈ ℝ⁺.
8+
- `τ::T`: a encoding-response offset. τ ∈ [0, min_rt].
99
1010
# Constructors
1111

src/MDFT.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
A model type for simulating Multi-attribute Decision Field Theory (MDFT) as an Stochastic Differential Equation (SDE).
55
66
# Parameters
7-
- `σ = 1.0`: diffusion noise
8-
- `α = 15.0`: evidence threshold
9-
- `τ = .30`: non-decision time
10-
- `γ::T`: scales the valance, `CMW`, functioning like a drift rate
7+
- `σ::T = 1.0`: diffusion noise. σ ∈ ℝ⁺.
8+
- `α::T = 15.0`: evidence threshold. α ∈ ℝ⁺.
9+
- `τ::T = .30`: non-decision time. τ ∈ [0, min_rt].
10+
- `γ::T`: scales the valance, `CMW`, functioning like a drift rate. γ ∈ ℝ⁺.
1111
- `κ::Vector{T}`: exponential rate parameters for switching attention between attributes. Currently, limited to two
12-
attributes
13-
- `ϕ1`: controls the sensitivity of lateral inhibition to distance in the distance function for creating the feedback matrix, `S`
14-
- `ϕ2`: controls evidence decay and maximum inhibition in the distance function for creating the feedback matrix, `S`
15-
- `β`: controls the weight of the dominance dimension in the feedback matrix distance function. If `β` < 0, the indifference dimension
12+
attributes. κ ∈ ℝ⁺.
13+
- `ϕ1::T`: controls the sensitivity of lateral inhibition to distance in the distance function for creating the feedback matrix, `S`. ϕ1 ∈ ℝ⁺.
14+
- `ϕ2::T`: controls evidence decay and maximum inhibition in the distance function for creating the feedback matrix, `S`. ϕ2 ∈ ℝ⁺.
15+
- `β::T`: controls the weight of the dominance dimension in the feedback matrix distance function. If `β` < 0, the indifference dimension
1616
recieves more where. If `β` > 0, the dominance dimension recieves more weight
1717
- `S::Array{T, 2}`: feedback matrix allowing self-connections and interconnections between alternatives. Self-connections range from zero to 1, where s_ij < 1 represents decay. Interconnections
1818
between options i and j where i ≠ j are inhibitory if s_ij < 0.

src/MLBA.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
44
# Fields
55
6-
- `ν::Vector{T}`: a vector of drift rates, which is a function of β₀, λₚ, λₙ, γ
7-
- `β₀::T`: baseline input for drift rate
8-
- `λₚ::T`: decay constant for attention weights of positive differences
9-
- `λₙ::T`: decay constant for attention weights of negative differences
10-
- `γ::T`: risk aversion exponent for subjective values
11-
- `σ::T1`: a scalar or vector of drift rate standard deviation
12-
- `A::T`: max start point
13-
- `k::T`: A + k = b, where b is the decision threshold
14-
- `τ::T`: an encoding-response offset
6+
- `ν::Vector{T}`: a vector of drift rates, which is a function of β₀, λₚ, λₙ, γ. ν ∈ ℝⁿ.
7+
- `β₀::T`: baseline input for drift rate. β₀ ∈ ℝ.
8+
- `λₚ::T`: decay constant for attention weights of positive differences. λₚ ∈ ℝ⁺.
9+
- `λₙ::T`: decay constant for attention weights of negative differences. λₙ ∈ ℝ⁺.
10+
- `γ::T`: risk aversion exponent for subjective values. γ ∈ ℝ⁺.
11+
- `σ::T1`: a scalar or vector of drift rate standard deviation. σ ∈ ℝ⁺.
12+
- `A::T`: max start point. A ∈ ℝ⁺.
13+
- `k::T`: A + k = b, where b is the decision threshold. k ∈ ℝ⁺.
14+
- `τ::T`: an encoding-response offset. τ ∈ [0, min_rt].
1515
1616
# Constructors
1717

0 commit comments

Comments
 (0)