Skip to content

3D point search #12

Description

@chrisflesher

Hello, I tried using this for 3D vectors but am not getting great results... was wondering if something like this might be possible using this library?

import numpy as np
import annax
import scipy.spatial

data = np.random.random((1000, 3))
index = annax.Index(data)
query = np.random.random(3)
neighbors, distances = index.search(query, k=10)
print(distances)
sp_distances, sp_neighbors = scipy.spatial.cKDTree(data).query(query, k=10)
print(sp_distances)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions