public interface SortedFloats extends Floats
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)
|
int indexOf(float x)
Arrays.binarySearch(float[], float)
:
x
is contained in this sequence, returns the index of x
Arrays.binarySearch(float[], float)
int indexNearest(float x)
int indexBefore(float x)
int indexAfter(float x)
int indexAtOrBefore(float x)
int indexAtOrAfter(float x)
void continuousIndexOf(float x, ContinuousIndex result)
ContinuousIndex
ContinuousIndex continuousIndexOf(float x)
ContinuousIndex
void continuousIndicesOf(Floats xs, ContinuousIndexArray result)
ContinuousIndexArray
ContinuousIndexArray continuousIndicesOf(Floats xs)
com.metsci.tracks.ContinuousIndexArray
void continuousIndicesOf(SortedFloats xs, ContinuousIndexArray result)
continuousIndicesOf(Floats, ContinuousIndexArray)
in some implementations.ContinuousIndexArray
ContinuousIndexArray continuousIndicesOf(SortedFloats xs)
continuousIndicesOf(Floats)
in some implementations.ContinuousIndexArray
Copyright © 2016 Metron, Inc.. All rights reserved.