public class StatefulIndexFinder extends java.lang.Object implements IndexFinder
Constructor and Description |
---|
StatefulIndexFinder(float[] values) |
Modifier and Type | Method and Description |
---|---|
static boolean |
areMonotonicallyIncreasing(float[] values) |
StatefulIndexFinder |
clone() |
int |
findIndexBelow(float value) |
public StatefulIndexFinder(float[] values)
values
- Must be monotonically increasing.public int findIndexBelow(float value)
findIndexBelow
in interface IndexFinder
value
- A floating-point value that the list is expected to spanpublic static boolean areMonotonicallyIncreasing(float[] values)
values
- A list of valuespublic StatefulIndexFinder clone() throws java.lang.CloneNotSupportedException
clone
in interface IndexFinder
clone
in class java.lang.Object
java.lang.CloneNotSupportedException