get_segment_density_outliers_indices

get_segment_density_outliers_indices(series: numpy.ndarray, window_size: int = 7, distance_threshold: float = 10, n_neighbors: int = 3, distance_func: typing.Callable[[float, float], float] = <function absolute_difference_distance>) List[int][source]

Get indices of outliers for one series.

Parameters
  • series (numpy.ndarray) – array to find outliers in

  • window_size (int) – size of window

  • distance_threshold (float) – if distance between two items in the window is less than threshold those items are supposed to be close to each other

  • n_neighbors (int) – min number of close items that item should have not to be outlier

  • distance_func (Callable[[float, float], float]) – distance function

Returns

list of outliers’ indices

Return type

List[int]