com.metsci.glimpse.util.primitives.sorted

## Interface SortedFloats

• ### Method Summary

All Methods
Modifier and Type Method and Description
`ContinuousIndex` `continuousIndexOf(float x)`
The continuous index at which x falls in this sequence.
`void` ```continuousIndexOf(float x, ContinuousIndex result)```
The continuous index at which x falls in this sequence.
`ContinuousIndexArray` `continuousIndicesOf(Floats xs)`
For each x in xs, the continuous index at which x falls in this sequence.
`void` ```continuousIndicesOf(Floats xs, ContinuousIndexArray result)```
For each x in xs, the continuous index at which x falls in this sequence.
`ContinuousIndexArray` `continuousIndicesOf(SortedFloats xs)`
For each x in xs, the continuous index at which x falls in this sequence.
`void` ```continuousIndicesOf(SortedFloats xs, ContinuousIndexArray result)```
For each x in xs, the continuous index at which x falls in this sequence.
`int` `indexAfter(float x)`
Smallest index whose value is greater than x
`int` `indexAtOrAfter(float x)`
Smallest index whose value is greater than or equal to x
`int` `indexAtOrBefore(float x)`
Largest index whose value is less than or equal to x
`int` `indexBefore(float x)`
Largest index whose value is less than x
`int` `indexNearest(float x)`
Index of the value closest to x.
`int` `indexOf(float x)`
Follows the convention of `Arrays.binarySearch(float[], float)`: If `x` is contained in this sequence, returns the index of `x` Otherwise, returns (-insertionPoint - 1)
• ### Methods inherited from interface com.metsci.glimpse.util.primitives.Floats

`copyOf, copyOf, copyTo, copyTo, copyTo, first, isEmpty, last, n, v`
• ### Method Detail

• #### indexNearest

`int indexNearest(float 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 floats is empty, returns -1.
• #### indexBefore

`int indexBefore(float x)`
Largest index whose value is less than x
• #### indexAfter

`int indexAfter(float x)`
Smallest index whose value is greater than x
• #### indexAtOrBefore

`int indexAtOrBefore(float x)`
Largest index whose value is less than or equal to x
• #### indexAtOrAfter

`int indexAtOrAfter(float x)`
Smallest index whose value is greater than or equal to x
• #### continuousIndexOf

```void continuousIndexOf(float x,
ContinuousIndex result)```
The continuous index at which x falls in this sequence.
`ContinuousIndex`
• #### continuousIndexOf

`ContinuousIndex continuousIndexOf(float x)`
The continuous index at which x falls in this sequence.
`ContinuousIndex`
• #### continuousIndicesOf

```void continuousIndicesOf(Floats xs,
ContinuousIndexArray result)```
For each x in xs, the continuous index at which x falls in this sequence.
`ContinuousIndexArray`
`ContinuousIndexArray continuousIndicesOf(Floats xs)`
`com.metsci.tracks.ContinuousIndexArray`