cppSim: Fast and Memory Efficient Spatial Interaction Models

Building on top of the 'RcppArmadillo' linear algebra functionalities to do fast spatial interaction models in the context of urban analytics, geography, transport modelling. It uses the Newton root search algorithm to determine the optimal cost exponent and can run country level models with thousands of origins and destinations. It aims at implementing an easy approach based on matrices, that can originate from various routing and processing steps earlier in an workflow. Currently, the simplest form of production, destination and doubly constrained models are implemented. Schlosser et al. (2023) <doi:10.48550/arXiv.2309.02112>.

Package details

AuthorIvann Schlosser [aut, cre] (ORCID: <https://orcid.org/0009-0004-4099-3198>)
MaintainerIvann Schlosser <ivann.schlosser.19@ucl.ac.uk>
LicenseMIT + file LICENSE
Version0.2
URL https://ischlo.github.io/cppSim/ https://github.com/ischlo/cppSim
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("cppSim")

Try the cppSim package in your browser

Any scripts or data that you put into this service are public.

cppSim documentation built on Sept. 9, 2025, 5:50 p.m.