@ -15,7 +15,9 @@ Make a new KDTree model for the given server.
ARGUMENT:: server
The server on which to make the model.
ARGUMENT:: numNeighbours
The number of neighbours to return.
The number of neighbours to return. A 0 will return all points in order of distance. When a radius is defined, numNeighbours is the maximum of items returned.
ARGUMENT:: radius
The threshold of acceptable distance for a point to be returned. A 0 will bypass this function, returning numNeighbours points.
ARGUMENT:: lookupDataSet
An optional link::Classes/FluidDataSet:: from which data points will be returned for realtime queries. This does not need to be the same DataSet that the tree was fitted against, but does need to have matching labels. Using this mechanism, we have a way to, e.g. associate labels with segments of playback buffers, without needing pass strings around the server. warning::This parameter can not be safely changed after the instance of FluidKDTree has been created::
@ -48,7 +50,7 @@ EXAMPLES::
code::
// Make a DataSet of random 23D points
// Make a DataSet of random 2D points
s.boot;
(
fork{
@ -73,19 +75,15 @@ fork{
~tree.cols;
//Return labels of k nearest points to a new point
//Return the labels of k nearest points to a new point