From 8ea515b968bacc94461715107aaa9eccffd043ef Mon Sep 17 00:00:00 2001 From: "behinger (s-ccs 001)" Date: Fri, 20 Sep 2024 14:41:22 +0000 Subject: [PATCH] maybe fix the interonset problem? --- src/onset.jl | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/onset.jl b/src/onset.jl index 4c03fd5..edfa64a 100644 --- a/src/onset.jl +++ b/src/onset.jl @@ -42,12 +42,6 @@ In the case that a TRF is simulated (via `TRFComponent`). This onset returns a v """ struct TRFOnset <: AbstractOnset end -function simulate_interonset_distances(rng,onset::TRFOnset,design) - sz = size(design) - return Int.(zeros(sz)) -end - - """ @@ -74,6 +68,16 @@ function simulate_interonset_distances(rng, onset::LogNormalOnset, design::Abstr end +""" + simulate_interonset_distances(rng, onset::UniformOnset, design::AbstractDesign) +In the case that a TRF is simulated (via `TRFComponent`). This onset returns a vector of zero-latencies, indicating that the TRF starts at the beginning of the signal. +""" +function simulate_interonset_distances(rng,onset::TRFOnset,design) + sz = size(design) + return Int.(zeros(sz)) +end + + #function simulate_interonset_distances(rng, onset::AbstractOnset,design::)