compute_thresh_gaussfit

muse_origin.compute_thresh_gaussfit(data, pfa, bins='fd')[source]

Compute a threshold with a gaussian fit of a distribution.

Parameters
dataarray

2D data from the O2 test.

pfafloat

Desired false alarm.

binsstr

Method for computings bins (see numpy.histogram_bin_edges).

Returns
histO2histogram value of the test
frecO2frequencies of the histogram
thresO2automatic threshold for the O2 test
meamean value of the fit
stdsigma value of the fit