binding
binding
¶
ASL binding adapter for the shared fitting infrastructure.
BoundASLModel wraps the Buxton pCASL model with PLDs, M0, and
labeling parameters, producing a FittableModel that the shared
fitter can use without knowing about ASL-specific context.
BoundASLModel
¶
Bases: BaseBoundModel
ASL model with PLDs and labeling parameters bound.
Wraps the Buxton pCASL model so the fitter only sees
predict_array_batch(free_params) -> output.
The model always predicts with unit M0 (M0=1). Callers must normalize observed delta-M by M0 before fitting so that the fitter works on M0-normalized data. This avoids per-voxel side-channels that are incompatible with active-voxel tracking in the LM fitter.
| PARAMETER | DESCRIPTION |
|---|---|
params
|
ASL quantification parameters (PLDs, label duration, T1s, etc.).
TYPE:
|
fixed
|
Parameters to fix at constant values during fitting.
TYPE:
|
model
|
ASL signal model to use. If
TYPE:
|
predict_array_batch
¶
Predict M0-normalized delta-M for a batch of voxels.
| PARAMETER | DESCRIPTION |
|---|---|
free_params_batch
|
Free parameter values, shape
TYPE:
|
xp
|
Array module.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
NDArray
|
Predicted delta-M/M0, shape |
get_initial_guess_batch
¶
Get initial parameter guesses from signal shape.
| PARAMETER | DESCRIPTION |
|---|---|
observed_batch
|
Observed data, shape
TYPE:
|
xp
|
Array module.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
NDArray
|
Initial guesses, shape |