Function setDifferenceSortedEpsilonNumbers

  • Parameters

    • a: number[]

      an array of numbers, in sorted order

    • b: number[]

      an array of numbers, in sorted order

    • epsilon: number = EPSILON

    Returns number[]

    a copy of "a" with no values found in "b".

    Description

    Return a modified copy of set "a" that filters out any number that exists in set "b". This method assumes that both input arrays are sorted, so this method will run in O(n) time. Numbers are compared within an epsilon range of each other. If arrays are not sorted, sort them before using this method.