raman.filter_outliers

raman.filter_outliers(y, eps=2.0)

Returns a list of indices for datasets that NOT outliers. An outlier is defined as a spectrum whose sum over amplitudes squared deviates from the ensemble average by more than eps times the ensemble standard deviation.

Parameters:
  • y (array) – A 2d array of spectra, where the first axis is the number of the dataset.
  • eps (float) – Threshold that defines an outlier in units of standard deviations (default = 2).
Returns:

Array of indices of spectra in y that are NOT outliers.