pysolate.threshold.noise_model

noise_model(Wx, delta, noise_starttime, noise_endtime, nsigma_method, nlbound, detection=False)[source]

Calculates noise model and threshold function.

Parameters
  • Wx (numpy.ndarray) – wavelet transform of shape (len(scales), len(time_series))

  • delta (float) – sampling interval.

  • noise_starttime (float) – noise start time.

  • noise_endtime (float) – noise end time.

  • nsigma_method (str) – block thresholding method.

  • nlbound (float) – noise level lower bound in percent.

  • nsigma_gauss (float) – umber of std for block threshold using Gaussian statistic.

  • detection (bool) – If True it will be applied before hard thresholding. Default is False.

Returns

the mean, standard deviation of the noise model, and threshold of the noise signal.

Return type

(numpy.ndarray, numpy.ndarray, numpy.ndarray)