|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The type of the values stored within each point in data spacepublic interface GeometricDataCollection<T extends java.io.Serializable>
This interface provides the methods for multidimensional data structures providing efficient search in data space for the next k neighbors and its distances, or the next neighbors in a specified distance. Also a mixed mode with distance but at least as many is supported.
| Method Summary | |
|---|---|
void |
add(double[] values,
T storeValue)
This method has to be called in order to insert new values into the data structure |
T |
get(int index)
This returns the index-th value added to this collection. |
java.util.Collection<Tupel<java.lang.Double,T>> |
getNearestValueDistances(double withinDistance,
double[] values)
This method returns a collection of data from all sample points inside the specified distance. |
java.util.Collection<Tupel<java.lang.Double,T>> |
getNearestValueDistances(double withinDistance,
int butAtLeastK,
double[] values)
This method returns a collection of data from all sample points inside the specified distance but at least k points. |
java.util.Collection<Tupel<java.lang.Double,T>> |
getNearestValueDistances(int k,
double[] values)
This method returns a collection of data from the k nearest sample points. |
java.util.Collection<T> |
getNearestValues(int k,
double[] values)
This method returns a collection of the stored data values from the k nearest sample points. |
int |
size()
This method has to return the number of stored data points. |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
void add(double[] values,
T storeValue)
values - specifies the geometric coordinates in data spacestoreValue - specifies the value at the given point
java.util.Collection<T> getNearestValues(int k,
double[] values)
k - the number of neighboursvalues - the coordinate of the querry point in the sample dimension
java.util.Collection<Tupel<java.lang.Double,T>> getNearestValueDistances(int k,
double[] values)
k - the number of neighboursvalues - the coordinate of the querry point in the sample dimension
java.util.Collection<Tupel<java.lang.Double,T>> getNearestValueDistances(double withinDistance,
double[] values)
values - the coordinate of the querry point in the sample dimension
java.util.Collection<Tupel<java.lang.Double,T>> getNearestValueDistances(double withinDistance,
int butAtLeastK,
double[] values)
values - the coordinate of the querry point in the sample dimensionint size()
T get(int index)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||