vector_cum_gamma_spline
- zdm.energetics.vector_cum_gamma_spline(Eth: ndarray, *params)[source]
Cumulative gamma-function luminosity function using spline interpolation.
Fast version of vector_cum_gamma that uses pre-computed spline interpolators. This is the recommended function for grid calculations.
- Parameters:
Eth (ndarray) – Energy threshold values in erg.
*params (tuple) – (Emin, Emax, gamma) - minimum energy, characteristic energy, shape parameter.
- Returns:
Fraction of bursts with E > Eth. Returns 1 for Eth < Emin.
- Return type:
ndarray
Notes
Automatically initializes splines for new gamma values if needed.