distancematrix.insights

Module Contents

Functions

lowest_value_idxs(array, exclude_distance)

Creates a generator that returns the indices of the lowest elements, where each index differs by at least

highest_value_idxs(array, exclude_distance)

Creates a generator that returns the indices of the highest elements, where each index differs by at least

distancematrix.insights.lowest_value_idxs(array, exclude_distance)

Creates a generator that returns the indices of the lowest elements, where each index differs by at least exclude_distance from every previously returned index. Non-finite values are ignored.

Parameters
  • array – 1D array

  • exclude_distance – a positive integer

Returns

a generator

distancematrix.insights.highest_value_idxs(array, exclude_distance)

Creates a generator that returns the indices of the highest elements, where each index differs by at least exclude_distance from every previously returned index. Non-finite values are ignored.

Parameters
  • array – 1D array

  • exclude_distance – a positive integer

Returns

a generator