From cd6043c58a0597390e4d6315e1599751e0681dd6 Mon Sep 17 00:00:00 2001 From: "behinger (s-ccs 001)" Date: Thu, 19 Dec 2024 12:03:47 +0100 Subject: [PATCH] minor improvement --- docs/literate/HowTo/FIRduration.jl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/literate/HowTo/FIRduration.jl b/docs/literate/HowTo/FIRduration.jl index 2c8790a4..35d71d87 100644 --- a/docs/literate/HowTo/FIRduration.jl +++ b/docs/literate/HowTo/FIRduration.jl @@ -6,7 +6,7 @@ using UnfoldMakie, CairoMakie using DataFrames using DisplayAs # hide -data, evts = UnfoldSim.predef_eeg(sfreq = 5, n_repeats = 1) +data, evts = UnfoldSim.predef_eeg(sfreq = 10, n_repeats = 1) evts.duration = 5:24 @@ -33,7 +33,6 @@ heatmap(Matrix(modelmatrix(m))') # We can predict overlap-corrected results p = predict(m; overlap = false)[1] - heatmap(p[1, :, :]) # note the `missings` which are displayed as white pixels. @@ -53,10 +52,7 @@ bf_vec = [Any => (f, basisfunction)] m = fit(UnfoldModel, bf_vec, evts, data; eventfields = [:latency, :duration]); -## currently bugged for small matrices -## plot_designmatrix(designmatrix(m)) -## thus using heatmap(Matrix(modelmatrix(m))') - +# as one can see, now the designmatrix is not stretched - but rather "block"-ed p = predict(m; overlap = false)[1] heatmap(p[1, :, :])