|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A generic interface to an index with point keys.
KDTree
Method Summary | |
CoordinateSystemI |
coordinateSystem()
Returns the coordinate system that the index is using. |
java.util.Enumeration |
elements()
Returns an enumeration to access all of the elements in random order. |
java.lang.Object |
get(PointI key)
Returns the value of the element whose key exactly matches 'key'. |
PairI |
getNearestNeighborTo(PointI point)
Returns the element with the nearest key. |
void |
put(PointI key,
java.lang.Object value)
Put a new element into the index. |
RangeI |
range()
Returns the range of points in the index. |
void |
removeAllElements()
Removes all of the elements from the index. |
java.util.Enumeration |
selectedElements()
Returns an enumeration to access the selected elements in random order. |
int |
selectNearestNeighbors(PointI point,
int n)
Select the 'n' elements whose keys are closest to 'point'. |
int |
selectRange(RangeI range)
Select the elements whose keys are in the range. |
void |
setCoordinateSystem(CoordinateSystemI coordinateSystem)
Sets the coordinate system for the index after first removing all the elements. |
int |
size()
Returns the number of elements in the index. |
int |
sizeOfSelected()
Returns the number of elements selected in the index. |
boolean |
supportsDuplicateKeys()
Returns true if the index can contain duplicate keys. |
Method Detail |
public int size()
public int sizeOfSelected()
public void removeAllElements()
public void setCoordinateSystem(CoordinateSystemI coordinateSystem)
public CoordinateSystemI coordinateSystem()
public boolean supportsDuplicateKeys()
public void put(PointI key, java.lang.Object value)
public java.lang.Object get(PointI key)
public PairI getNearestNeighborTo(PointI point)
public int selectNearestNeighbors(PointI point, int n)
public int selectRange(RangeI range)
public java.util.Enumeration elements()
public java.util.Enumeration selectedElements()
public RangeI range()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |