frame_cumsum: Cumulative integral over frames

View source: R/kinfitr_miscfuncs.R

frame_cumsumR Documentation

Cumulative integral over frames

Description

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.

Usage

frame_cumsum(dur, tac)

Arguments

dur

Frame durations in minutes.

tac

Radioactivity concentrations for each frame.

Value

The cumulative integral of radioactivity.

Author(s)

Granville J Matheson, mathesong@gmail.com

Examples

data(pbr28)

tac <- pbr28$tacs[[2]]$WB
dur <- pbr28$tacs[[2]]$Duration / 60

frame_integ <- frame_cumsum(dur, tac)



mathesong/kinfitr documentation built on Jan. 15, 2024, 11:07 p.m.