binding
binding
¶
DCE binding adapter for the shared fitting infrastructure.
BoundDCEModel wraps a BasePerfusionModel together with time and
AIF arrays, producing a FittableModel that the shared fitter can
use without knowing about DCE-specific context.
BoundDCEModel
¶
Bases: BaseBoundModel
DCE model with time and AIF bound.
Wraps a BasePerfusionModel so the fitter only sees
predict_array_batch(free_params) -> output.
| PARAMETER | DESCRIPTION |
|---|---|
model
|
DCE pharmacokinetic model.
TYPE:
|
t
|
Time points in seconds.
TYPE:
|
aif
|
Arterial input function concentration.
TYPE:
|
fixed
|
Parameters to fix at constant values during fitting.
TYPE:
|
predict_array_batch
¶
Predict tissue concentration for a batch of voxels.
| PARAMETER | DESCRIPTION |
|---|---|
free_params_batch
|
Free parameter values, shape
TYPE:
|
xp
|
Array module.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
NDArray
|
Predicted concentrations, shape |
get_initial_guess_batch
¶
Get initial parameter guesses for a batch of voxels.
Delegates to the DCE model's get_initial_guess_batch and
filters out fixed parameters.
| PARAMETER | DESCRIPTION |
|---|---|
observed_batch
|
Observed data, shape
TYPE:
|
xp
|
Array module.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
NDArray
|
Initial guesses, shape |
compute_jacobian_batch
¶
DCE uses numerical Jacobian (convolution models).