Provides efficient query engine for discrete spaces.
Uses dictionary lookups for elements indices and presence in general. Each space obtains a lookup dictionary which performs translation from given index/coordinate into the index within an index table (with a dimension per each space to search within).
TODO: - extend documentation - repr
Methods
query(**kwargs) | |
query_byid(fid) | Return feature ids of neighbors for a given feature id |
train(dataset) |
Parameters: | sorted : bool
|
---|
Methods
query(**kwargs) | |
query_byid(fid) | Return feature ids of neighbors for a given feature id |
train(dataset) |
Either to sort the query results