NAME

Algorithm::LSH - perl implementation of Locality Sensitive Hashing

SYNOPSIS

use Algorithm::LSH;

my $lsh = Algorithm::LSH->new(
    L => 5,
    k => 10,
    d => 3,
);

while(my($label, $vector) = each %database){
    $lsh->insert($label, $vector);
}

my $query_vector = [ 123, 456, 789 ];
my $result = $lsh->select($query_vector);

DESCRIPTION

Algorithm::LSH is a perl implementation of Locality Sensitive Hashing algorithm.

THIS MODULE IS IN ITS VERY ALPHA QUALITY.

METHODS

new

insert

neighbours

nearest

nearest_neighbours

nn

distance

save

load

hash

bucket

storage

AUTHOR

Takeshi Miki <miki@cpan.org>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO