compute_hardness_ratio
grb_trigger.features.compute_hardness_ratio(fg_window, bg_window)Compute the hardness ratio (HR) of the background-subtracted signal.
Parameters
fg_window, bg_windowtuple of numpy.ndarray-
Windows returned by
split_windows.
Returns
- float
-
Net high-channel rate divided by net low-channel rate.
0.0if either net rate is not positive.
Raises
- ValueError
-
If a window is empty.
Notes