Skip to content

Commit c6d97ad

Browse files
committed
Fixed a bug for delay estimation using 2TC and 2TC1K. Thanks to JB Pochon for spotting it!
1 parent 235dc2e commit c6d97ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/kinfitr_2tcm.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ twotcm_fitDelay_model <- function(t_tac, input, K1, k2, k3, k4, inpshift, vB) {
406406
i_outtac <- kinfit_convolve(a, b, step)
407407

408408
# Correction for vB
409-
i_outtac <- i_outtac * (1 - vB) + vB * aif
409+
i_outtac <- i_outtac * (1 - vB) + vB * i_blood
410410

411411
outtac <- pracma::interp1(interptime, i_outtac, t_tac)
412412

R/kinfitr_2tcm_macro.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ twotcm_macro_fitDelay_model <- function(t_tac, input, K1, Vnd, BPp, k4, inpshift
476476
i_outtac <- kinfit_convolve(a, b, step)
477477

478478
# Correction for vB
479-
i_outtac <- i_outtac * (1 - vB) + vB * aif
479+
i_outtac <- i_outtac * (1 - vB) + vB * i_blood
480480

481481
outtac <- pracma::interp1(interptime, i_outtac, t_tac)
482482

0 commit comments

Comments
 (0)