Function to compute B and S matrices for moment equations of Vardi's method (1996). It's not particularly efficient, but it works.
routing matrix (m x k)
matrix of link loads over time (m x n, one column per time)
list containing two entries for the B and S matrices, respectively
Y. Vardi. Network tomography: estimating source-destination traffic intensities from link data. Journal of the American Statistical Association, 91:365-377, 1996.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.