Nengo.ca

ca.nengo.util
Interface IndexFinder

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
StatefulIndexFinder

public interface IndexFinder
extends java.lang.Cloneable

Searches a monotonically increasing list of floating-point values for the largest one that is less than or equal to a requested value. The list of values is typically set at construction time.


Method Summary
 IndexFinder clone()
           
 int findIndexBelow(float value)
           
 

Method Detail

findIndexBelow

int findIndexBelow(float value)
Parameters:
value - A floating-point value that the list is expected to span
Returns:
The index of the largest value in the list which is smaller than the 'value' arg

clone

IndexFinder clone()
                  throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

Nengo.ca