Git Product home page Git Product logo

acap's Introduction

acap's People

Contributors

tavianator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

acap's Issues

Ability to retreive the index of a neighborg instead of its value

Hello.

As the search results consists of values instead of indices, I have tried to use such kind of wrapper to access to the indice:

        struct IndexedCoordinates {
            index: usize,
            coords: Vec<f64> // already implment all the necessary traits
        }

and implement the appropriate traits to make it useable.
Although here is no issue to implement the Coordinates trait:

        impl Coordinates for IndexedCoordinates {
            type Value = f64;

            fn dims(&self) -> usize {
                self.coords.dims()
            }

            fn coord(&self, i: usize) -> Self::Value {
                self.coords.coord(i)
            }
        }

I am unable to implement the traits that allow to search a neighbors.
If I am right, I have to implement Proximity for Euclidean<IndexedCoordinates> which is not possible.

Am I wrong in the design of my indexed coordinates ? If so, could you guide me ? If no, is there a possibility to add such ability to the library ?
Thanks

Expose item slices from FlatKdTree / FlatVpTree

I want to be able to iterate over all the points in the tree. Since those structures store them as flat arrays, it seems like it would be easy enough to expose a slice reference and let user do whatever they want on the read-only items.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.