Function epsilonUniqueSortedNumbers

  • Parameters

    • array: number[]

      an array of numbers.

    • Optional epsilon: number = EPSILON

      an optional epsilon.

    Returns number[]

    a sorted and filtered array of the input array.

    Description

    Given an array of numbers, sort the list and filter out any two numbers which are close to each other within an epsilon. The result list may be smaller than the input list.