Skip to content

feature_extraction_loop

function grb_trigger.features

grb_trigger.features.feature_extraction_loop(detector_counts, background_bins_number=100, foreground_bins_number=10)

Extract the feature matrix by sliding over every valid bin.

Parameters

detector_counts tuple of numpy.ndarray

(low_counts, high_counts).

background_bins_number int, default 100

Background window size.

foreground_bins_number int, default 10

Foreground window size.

Returns

X numpy.ndarray, shape (n_valid_windows, 7)

Columns: SNR low, SNR high, HR, peak-to-mean low/high, asymmetry low/high.

See Also