Skip to content

Commit

Permalink
Fixed a bug for delay estimation using 2TC and 2TC1K. Thanks to JB Po…
Browse files Browse the repository at this point in the history
…chon for spotting it!
  • Loading branch information
mathesong committed Oct 9, 2024
1 parent 235dc2e commit c6d97ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/kinfitr_2tcm.R
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ twotcm_fitDelay_model <- function(t_tac, input, K1, k2, k3, k4, inpshift, vB) {
i_outtac <- kinfit_convolve(a, b, step)

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

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

Expand Down
2 changes: 1 addition & 1 deletion R/kinfitr_2tcm_macro.R
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ twotcm_macro_fitDelay_model <- function(t_tac, input, K1, Vnd, BPp, k4, inpshift
i_outtac <- kinfit_convolve(a, b, step)

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

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

Expand Down

0 comments on commit c6d97ad

Please sign in to comment.