neurodsp.utils.outliers.discard_outliers

neurodsp.utils.outliers.discard_outliers(data, outlier_percent)[source]

Discard outlier arrays with high values.

Parameters
data2d or 3d array

Array to remove outliers from.

outlier_percentfloat

The percentage of outlier values to be removed. Must be between 0 and 100.

Returns
dataarray

Array after removing outliers.

Notes

This function drops entries across the last dimension. Values are dropped based on being an outlier in log10 spacing.