Skip to content

Commit

Permalink
docstrings formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdez committed Feb 10, 2025
1 parent 988cc16 commit 2e8a79f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/configs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Default configurations for the supporting axis. Similar to PlotConfig, but these configurations are not shared by all plots.\\
Such supporting axes allow users to flexibly see defaults in docstrings and manipulate them using corresponding axes.
For developers: to make them updateable in the function, use `update_axis`.
For developers: to make them updateable in the function, use `update_axis`.\\
**Return value:** `NamedTuple`.
"""
function supportive_defaults(cfg_symb::Symbol)
Expand Down
18 changes: 9 additions & 9 deletions src/pattern_detection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ For instance, single EEG channel (sensor) with trials over time.\\
Method:\\
- Filter dataset for smearing.\\
- Use pattern detection function.\\
- In "plot" mode returns an ERP image with a value of pattern detection. Otherwise - only value.
- In `mode = "plot"` returns an ERP image with a value of pattern detection. Otherwise - only value.
## Arguments
- erp_data::Matrix{Float64}`\\
- `erp_data::Matrix{Float64}`\\
3-dimensional array of voltages of event-related potentials. Dimensions: channels, recording time, trials.
- detector::Function`\\
- `detector::Function`\\
Function used for pattern detection.\\
For example, `Images.entropy` from `Images.jl`.
- filter::Function`\\
- `filter::Function`\\
Function used for smearing.\\
## Keyword arguments (kwargs)
- mode::String = "plot"` \\
- `mode::String = "plot"` \\
Plot an ERP image with the pattern detection value.
**Return Value:** (Figure with) pattern detection value.
**Return Value:** (`Figure` with) pattern detection value.
"""
function pattern_detector(
erp_data::Matrix{Float64},
Expand Down Expand Up @@ -64,17 +64,17 @@ Mode of permuted means:\\
- `erp_data::Array{Float64, 3}`\\
3-dimensional Array of voltages of Event-related potentials. Dimensions: time of recording, trials, channels.
- detector::Function`\\
- `detector::Function`\\
Function used for pattern detection.\\
For example, `Images.entropy` from `Images.jl`.
- filter::Function`\\
- `filter::Function`\\
Function used for smearing.\\- `kwargs...`\\
Additional styling behavior. \\
## Keyword arguments (kwargs)
- `n_permutations::Number = 10` \\
Number fo permutations. Useful for mode "permuted_means" where it defines number of random permutations before averaging.
- mode::String = "basic"` \\
- `mode::String = "basic"` \\
With the "permuted_means" mode, results are given as the absolute value between the detector result over the given data set and the randomly permuted data set.
**Return Value:** DataFrame with pattern detection values. Dimensions: experimental events, channels.
Expand Down
2 changes: 1 addition & 1 deletion src/pattern_simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Columns in resulting sim\\_6patterns Data Frame to simulate this patterns: Δlat
- `σ::Float = 3.2`\\
Controls standart deviation.
**Return Value:** sim\\_6patterns::Matrix{Float64} with voltages and sim_evts::DataFrame with events.
**Return Value:** `sim\\_6patterns::Matrix{Float64}` with voltages and `sim_evts::DataFrame` with events.
"""
function simulate_6patterns= 3.2, σ = 0.5; tmp = nothing)
design = SingleSubjectDesign(;
Expand Down

0 comments on commit 2e8a79f

Please sign in to comment.