Package: cppSim 0.2

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>.

Authors:Ivann Schlosser [aut, cre]

cppSim_0.2.tar.gz
cppSim_0.2.zip(r-4.6)cppSim_0.2.zip(r-4.5)cppSim_0.2.zip(r-4.4)
cppSim_0.2.tgz(r-4.5-x86_64)cppSim_0.2.tgz(r-4.5-arm64)
cppSim_0.2.tar.gz(r-4.6-arm64)cppSim_0.2.tar.gz(r-4.6-x86_64)cppSim_0.2.tar.gz(r-4.5-arm64)cppSim_0.2.tar.gz(r-4.5-x86_64)
cppSim_0.2.tgz(r-4.5-emscripten)
cppSim.pdf |cppSim.html
cppSim/json (API)
NEWS

# Install 'cppSim' in R:
install.packages('cppSim', repos = c('https://ischlo.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ischlo/cppsim/issues

Pkgdown/docs site:https://ischlo.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

On CRAN:

Conda:

geographic-data-sciencegeographical-information-systemspatial-analysisspatial-interaction-modelsurban-data-scienceopenblascppopenmp

4.96 score 1 stars 23 scripts 463 downloads 3 exports 2 dependencies

Last updated from:856decef34. Checks:13 OK. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-arm64OK995
linux-devel-x86_64OK169
source / vignettesOK440
linux-release-arm64OK976
linux-release-x86_64OK1125
macos-release-arm64OK180
macos-release-x86_64OK353
macos-oldrel-arm64OK224
macos-oldrel-x86_64OK285
windows-develOK128
windows-releaseOK133
windows-oldrelOK127
wasm-releaseOK490

Exports:run_modelrun_model_singlesimulation

Dependencies:RcppRcppArmadillo

Getting started

Rendered fromgetting_started_2.Rmdusingknitr::rmarkdownon Dec 05 2025.

Last update: 2025-08-29
Started: 2024-05-13

Gravity model

Rendered fromgravity_model.Rmdusingknitr::rmarkdownon Dec 05 2025.

Last update: 2025-04-17
Started: 2024-07-19

  • Image