Interface SortedDoubles

    • Method Detail

      • indexNearest

        int indexNearest​(double x)
        Index of the value closest to x. If the two closest values are x-C and x+C, returns the index of x+C. If doubles is empty, returns -1.
      • indexBefore

        int indexBefore​(double x)
        Largest index whose value is less than x
      • indexAfter

        int indexAfter​(double x)
        Smallest index whose value is greater than x
      • indexAtOrBefore

        int indexAtOrBefore​(double x)
        Largest index whose value is less than or equal to x
      • indexAtOrAfter

        int indexAtOrAfter​(double x)
        Smallest index whose value is greater than or equal to x
      • continuousIndexOf

        void continuousIndexOf​(double x,
                               ContinuousIndex result)
        The continuous index at which x falls in this sequence.
        See Also:
        ContinuousIndex
      • continuousIndexOf

        ContinuousIndex continuousIndexOf​(double x)
        The continuous index at which x falls in this sequence.
        See Also:
        ContinuousIndex
      • continuousIndicesOf

        ContinuousIndexArray continuousIndicesOf​(Doubles xs)
        For each x in xs, the continuous index at which x falls in this sequence.
        See Also:
        com.metsci.tracks.ContinuousIndexArray