generate_grb_pulse
grb_trigger.simulations.generate_grb_pulse(duration_bins, amplitude, tau_rise=2.0, tau_decay=20.0, hardness_ratio=1.5)Generate a GRB pulse with a fast rise and exponential decay.
Parameters
duration_binsint-
Duration of the pulse in bins.
amplitudefloat-
Peak count rate of the low channel.
tau_risefloat, default 2.0-
Rise time constant.
tau_decayfloat, default 20.0-
Decay time constant (must be >=
tau_rise). hardness_ratiofloat, default 1.5-
High/low channel rate ratio, in [1.0, 2.5].
Returns
low, highnumpy.ndarray, shape (duration_bins,)-
Poisson-sampled counts per channel.
Raises
- ValueError
-
If an argument is outside its allowed range.
Notes
The low-channel rate is
and the high channel is hardness_ratio * r(t).