logan_analysis_with_rsquared#
- petpal.kinetic_modeling.graphical_analysis.logan_analysis_with_rsquared(tac_times_in_minutes: numpy.ndarray, input_tac_values: numpy.ndarray, region_tac_values: numpy.ndarray, t_thresh_in_minutes: float) tuple[float, float, float]#
Performs Logan analysis on given input TAC, regional TAC, times and threshold.
- Parameters:
tac_times_in_minutes (np.ndarray) – Array of times in minutes.
input_tac_values (np.ndarray) – Array of input TAC values
region_tac_values (np.ndarray) – Array of ROI TAC values
t_thresh_in_minutes (np.ndarray) – Threshold time in minutes. Line is fit for all values after the threshold.
- Returns:
tuple – (slope, intercept, \(R^2\))
Important
The interpretation of the values depends on the underlying kinetic model.
We assume that the input TAC and ROI TAC values are sampled at the same times.