compute_asymmetry_ratio
grb_trigger.features.compute_asymmetry_ratio(fg_window)Compute the temporal asymmetry of the foreground window.
Parameters
fg_windowtuple of numpy.ndarray-
Foreground window returned by
split_windows.
Returns
- numpy.ndarray, shape (2,)
-
Mean of the first half divided by mean of the second half, for the low and high channel (
0if the second-half mean is 0).
Raises
- ValueError
-
If a channel has two or fewer bins.
Notes
GRB pulses rise fast and decay slowly, so they give values above 1; symmetric events (e.g. SAA crossings) give values near 1.