|
119 | 119 | compute_threshold(model) = model.α |
120 | 120 | compute_threshold(model::AbstractLBA) = model.A + model.k |
121 | 121 | compute_threshold(model::AbstractRDM) = model.A + model.k |
122 | | - |
| 122 | +compute_threshold(model::AbstractLNR) = 1.0 |
123 | 123 | """ |
124 | 124 | get_default_labels(model::AbstractRDM) |
125 | 125 |
|
@@ -153,6 +153,23 @@ function get_default_labels(model::AbstractLBA) |
153 | 153 | ] |
154 | 154 | end |
155 | 155 |
|
| 156 | +""" |
| 157 | + get_default_labels(model::AbstractLNR) |
| 158 | +
|
| 159 | +Generates default parameter labels and locations |
| 160 | +
|
| 161 | +# Arguments |
| 162 | +
|
| 163 | +- `model::AbstractLBA`: an object for the log normal race model |
| 164 | +""" |
| 165 | +function get_default_labels(model::AbstractLNR) |
| 166 | + α = 1 |
| 167 | + return [ |
| 168 | + (0, α, text("α", 10, :right)), |
| 169 | + (model.τ, 0, text("τ", 10, :bottom)) |
| 170 | + ] |
| 171 | +end |
| 172 | + |
156 | 173 | """ |
157 | 174 | get_default_labels(model::AbstractRDM) |
158 | 175 |
|
@@ -483,6 +500,34 @@ function get_model_plot_defaults(d::AbstractLBA) |
483 | 500 | ) |
484 | 501 | end |
485 | 502 |
|
| 503 | +""" |
| 504 | + get_model_plot_defaults(d::AbstractLNR) |
| 505 | +
|
| 506 | +Returns default plot options |
| 507 | +
|
| 508 | +# Arguments |
| 509 | +
|
| 510 | +- `d::AbstractLNR`: an object for the log normal race |
| 511 | +- `n_subplots`: the number of subplots (i.e., choices) |
| 512 | +""" |
| 513 | +function get_model_plot_defaults(d::AbstractLNR) |
| 514 | + n_subplots = n_options(d) |
| 515 | + title = ["choice $i" for _ ∈ 1:1, i ∈ 1:n_subplots] |
| 516 | + return ( |
| 517 | + xaxis = nothing, |
| 518 | + yaxis = nothing, |
| 519 | + xticks = nothing, |
| 520 | + yticks = nothing, |
| 521 | + grid = false, |
| 522 | + linewidth = 0.75, |
| 523 | + color = :black, |
| 524 | + leg = false, |
| 525 | + title, |
| 526 | + layout = (n_subplots, 1), |
| 527 | + arrow = :closed |
| 528 | + ) |
| 529 | +end |
| 530 | + |
486 | 531 | """ |
487 | 532 | get_model_plot_defaults(d::AbstractCDDM) |
488 | 533 |
|
|
0 commit comments