patlak_analysis_with_rsquared#
- petpal.kinetic_modeling.graphical_analysis.patlak_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 Patlak analysis given the input TAC, region 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
We assume that the input TAC and ROI TAC values are sampled at the same times.