Learn R Programming

networkTomography (version 0.3)

gravity: Run tomogravity estimation on complete time series of aggregate flows

Description

Run tomogravity estimation on complete time series of aggregate flows

Usage

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

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

Run the code above in your browser using DataLab