gravity: Run tomogravity estimation on complete time series of...

Description Usage Arguments Value See Also Examples

View source: R/gravity.R

Description

Run tomogravity estimation on complete time series of aggregate flows

Usage

1
gravity(Y, srcDstInd)

Arguments

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 getSrcDstIndices

Value

Xhat, a n x k matrix containing a vector of estimated point-to-point flows (for each time point) per row

See Also

Other gravity: gravity.fit

Examples

1
2
3
data(cmu)
srcDstInd <- getSrcDstIndices(cmu$A.full)
estimate <- gravity(Y=cmu$Y[1:3,], srcDstInd=srcDstInd)

Example output



networkTomography documentation built on May 2, 2019, 3:28 a.m.