Code Monkey home page Code Monkey logo

spatial's Introduction

Logo of Spatial

Spatial C++ Library

Generic multi-dimensional containers for C++, with iterators over orthogonal ranges or nearest neighbors, modeled after the STL.

Web: https://sourceforge.net/projects/spatial/

Feature overview

  • Static (compile-time) or dynamic (run-time) determination of the number of dimensions

  • Generic design that mimic STL containers, and iterators

  • Feature rebalancing k-d tree preventing worst-case run time on many operations

  • Iteration over orthogonal range with custom predicates and support for points or boxes

  • Iteration over neighbors, from nearest to furthest with custom metrics

  • Iteration over a single dimension, independantly from others

  • Heavily unit-tested and production ready

Minor version change from 2.1 to 2.2

Classes container_traits and metric_traits are removed since they provided no benefit and inflated the code needlessly. If you used these classes, just remove them from your code, calling the types from containers or metrics directly.

Installation

Spatial is a header-only library and all you have to do is to copy the content of the src folder in a folder named spatial under the appropriate header directory for your project or your environment.

Typically on Linux, this just means:

$ sudo cp -a src/* /usr/local/include/spatial/

Using MSVC++ on Windows, you may install them under:

%Visual Studio location%\VC\include\spatial\

Once the above is done, you should be able to simply use the library by calling one of its headers, such as point_multiset:

#include <spatial/point_multiset.hpp>

Licensing

Spatial C++ Library is provided under the term of the Boost 1.0 License. Alternatively, see the file COPYING provided with your copy of the library.

Documentation

Currently, the documentation is still hosted on Sourceforge. Github-page hosting is coming.

If you which to generate the documentation yourself, first install Doxygen and LaTeX, then:

cd doc; doxygen

This should generate the html and latex folders with the documentation.

spatial's People

Contributors

sbougerel avatar

Watchers

 avatar  avatar

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.