k-Furthest-Neighbors Search

>>> from mlpack import kfn

This program will calculate the k-furthest-neighbors of a set of points. You may specify a separate set of reference points and query points, or just a reference set which will be used as both the reference and query set.

For example, the following will calculate the 5 furthest neighbors of eachpoint in 'input' and store the distances in 'distances' and the neighbors in 'neighbors':

>>> kfn(k=5, reference=input)
>>> distances = output['distances']
>>> neighbors = output['neighbors']

The output files are organized such that row i and column j in the neighbors output matrix corresponds to the index of the point in the reference set which is the j'th furthest neighbor from the point in the query set with index i. Row i and column j in the distances output file corresponds to the distance between those two points.

input options

output options

The return value from the binding is a dict containing the following elements: