A collection of functions for spatial interaction modelling