-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathUnfoldSim.jl
More file actions
83 lines (67 loc) · 1.86 KB
/
UnfoldSim.jl
File metadata and controls
83 lines (67 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
module UnfoldSim
using DSP
using Random
using DataFrames
using Distributions # for LogNormal Onset
using Parameters
using StatsModels
using MixedModels
using ImageFiltering # for Noise-filter (can be replaced maybe?)
using MixedModelsSim
using SignalAnalysis
using LinearAlgebra
using ToeplitzMatrices # for AR Expo. Noise "Circulant"
using StatsModels
using HDF5, Artifacts, FileIO
using Automa # for sequence
using LinearAlgebra # headmodel
import DSP.hanning
import Base.length
import Base.size
import Base.show
include("types.jl")
include("design.jl")
include("component.jl")
include("noise.jl")
include("simulation.jl")
include("onset.jl")
include("predefinedSimulations.jl")
include("headmodel.jl")
include("helper.jl")
include("sequence.jl")
include("bases.jl")
export size, length
export AbstractComponent, AbstractNoise, AbstractOnset, AbstractDesign
# statsmodels re-export
export @formula, DummyCoding, EffectsCoding
# mixedModels re-export
export create_re
# main types
export Simulation
# component types
export MixedModelComponent, LinearModelComponent, TRFComponent
# export designs
export MultiSubjectDesign, SingleSubjectDesign, RepeatDesign, SequenceDesign
# noise functions
export PinkNoise, RedNoise, WhiteNoise, NoNoise, ExponentialNoise #,RealNoise (not implemented yet)
# UnfoldSim functions
export simulate,
simulate_responses,
simulate_interonset_distances,
simulate_component,
simulate_onsets,
simulate_noise,
generate_events
# utilities
export pad_array, convert
# export Offsets
export UniformOnset, LogNormalOnset, NoOnset, UniformOnsetFormula, LogNormalOnsetFormula, TRFOnset
# re-export StatsModels
export DummyCoding, EffectsCoding
# export bases
export p100, n170, p300, n400, hrf, PuRF
# headmodel
export AbstractHeadmodel, Hartmut, headmodel, leadfield, orientation, magnitude
# multichannel
export MultichannelComponent
end