gravity | R Documentation |
Run tomogravity estimation on complete time series of aggregate flows
gravity(Y, srcDstInd)
Y |
n x m matrix contain one vector of observed aggregate flows per row |
srcDstInd |
list of source and destination flow indices corresponding to
each point-to-point flow, as produced by |
Xhat, a n x k matrix containing a vector of estimated point-to-point flows (for each time point) per row
Other gravity:
gravity.fit()
data(cmu) srcDstInd <- getSrcDstIndices(cmu$A.full) estimate <- gravity(Y=cmu$Y[1:3,], srcDstInd=srcDstInd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.