Description Usage Arguments Note
Calculate station-to-station mutual information matrix for a given city.
Upper diagonal of matrix is between all trips from i and j, so
dd_cov()[i, j]
holds the covariance between all trips from
station i
to all other stations and from station j
to
all other stations. Analogously, the lower diagonal (dd_cov()[j, i]
)
holds covariances between all trips to i and j.
1 |
city |
City for which mutual information matrix is to be extracted |
lower |
Lower limit (0-1) for distance cutoff used to calculate covariances (see details) |
upper |
Upper limit (0-1) for distance cutoff used to calculate covariances (see details) |
osm |
If |
The directory from which trip matrices are loaded can be retrieveed with dd_get_data_dir, and set with dd_set_data_dir.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.