memoiry / FLANN.jl

A Julia wrapper for Fast Library for Approximate Nearest Neighbors (FLANN)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FLANN.jl Build Status Coverage Status

A simple wrapper for FLANN, Fast Library for Approximate Nearest Neighbors. It has an interface similar to the NearestNeighbors package API.

Installation

Use the package manager to install

julia> Pkg.add("FLANN")

or clone the package from this repository and build it.

julia> Pkg.clone("https://github.com/wildart/FLANN.jl.git")
julia> Pkg.build("FLANN")

Linux

Depending on the version of your operation system, you'll be prompted to install a FLANN binary or it is going be built from the sources.

Usage Example

	using Distances
    using FLANN

    X = readdlm(Pkg.dir("FLANN", "test", "iris.csv"), ',')
	v = X[:, 84]
	k = 3
	r = 10.0

	idxs, dsts = nearest(X, v, k, FLANNParameters())

	# or

	t = flann(X, FLANNParameters(), Minkowski(3))
	inds, dists = nearest(t, v, k)

	# or

	idxs, dsts = inball(t, v, r)

	# Do not forget to close index!
	close(t)

TODO

  • Documentation

About

A Julia wrapper for Fast Library for Approximate Nearest Neighbors (FLANN)

License:Other


Languages

Language:Julia 100.0%