Skip to content

compute_asymmetry_ratio

function grb_trigger.features

grb_trigger.features.compute_asymmetry_ratio(fg_window)

Compute the temporal asymmetry of the foreground window.

Parameters

fg_window tuple 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 (0 if 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.