gamma_model
gamma_model
¶
DSC gamma-variate binding adapter for the shared fitting infrastructure.
BoundGammaVariateModel wraps the gamma-variate function with
time points, producing a FittableModel that the shared fitter
can use for recirculation removal.
BoundGammaVariateModel
¶
Bases: BaseBoundModel
Gamma-variate model with time points bound.
Wraps the gamma-variate function so the fitter only sees
predict_array_batch(free_params) -> output.
| PARAMETER | DESCRIPTION |
|---|---|
time
|
Time points in seconds.
TYPE:
|
fixed
|
Parameters to fix at constant values during fitting.
TYPE:
|
peak_time
|
Approximate peak time for setting t0 upper bound.
TYPE:
|
predict_array_batch
¶
Predict gamma-variate concentration for a batch.
| PARAMETER | DESCRIPTION |
|---|---|
free_params_batch
|
Free parameter values, shape
TYPE:
|
xp
|
Array module.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
NDArray
|
Predicted concentration, shape |
get_initial_guess_batch
¶
Get initial parameter guesses from curve shape.
| PARAMETER | DESCRIPTION |
|---|---|
observed_batch
|
Observed data, shape
TYPE:
|
xp
|
Array module.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
NDArray
|
Initial guesses, shape |