/libspatial

A library built to allow the easy importation of spatial data as well as fast, scalable implementations of AutoRegressive models

Primary LanguageC++Mozilla Public License 2.0MPL-2.0

libspatial

This is a software library meant to be a performance-competitive alternative to the library spdep. Currently supported features include:

  • solving SAR and CAR models
  • creating sparse adjacency matrices for images

For more details, see the preliminary paper about the library.

###Dependencies

  • g++ (at least v. 4.8).
  • armadillo (at least v. 4.300).
  • CImg (at least v. 1.5.9).
  • a linear algebra subroutine package supported by armadillo such as Intel MKL.
  • Mac OS X (10.9) or Linux.

###Installation To compile libspatial as well as the example file testing.cc, follow the following steps:

  1. You'll need modify the Makefile in the src directory to specify a linear algebra library to link against. The Makefile currently uses the Intel MKL as the linear algebra backend, but there are commented out lines for supported OpenBLAS as well. Should you wish to use some other linear algebra library, modify the Makefile accordingly.

  2. Run make.

###Usage Example usage is provided in testing.cc