View source: R/kinfitr_miscfuncs.R
frame_cumsum | R Documentation |
This function uses the frame radioactivity values and durations to create a cumulative integral. It sums the multiple of radioactivity and duration for all frames preceding the current frame, and halves that of the current frame. This is an alternative to using the trapezoidal method.
frame_cumsum(dur, tac)
dur |
Frame durations in minutes. |
tac |
Radioactivity concentrations for each frame. |
The cumulative integral of radioactivity.
Granville J Matheson, mathesong@gmail.com
data(pbr28)
tac <- pbr28$tacs[[2]]$WB
dur <- pbr28$tacs[[2]]$Duration / 60
frame_integ <- frame_cumsum(dur, tac)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.