neutral_trips: neutral_trips

Description Usage Arguments Value

Description

Generate a neutral trip matrix by fitting a spatial interaction model. If no distance decay parameter, k, is given, the value is derived by maximising the fit of the spatial interaction model to the observed trip matrix.

Usage

1
neutral_trips(distmat, tripmat, k = NULL)

Arguments

distmat

A station-to-station distance matrix, generally obtained from internal distmats data

tripmat

A station-to-station trip matrix, generally obtained from internal tripmats data

k

Value of exponential decay used in spatial interaction model; if not specified, value is determined by maximising fit between neutral and observed models.

Value

A matrix equivalent to tripmat, but in which values are generated by fitting a spatial interaction model.


mpadge/distdecay documentation built on May 24, 2019, 6:08 a.m.