getSrcDstIndices: Find indices of source and destination for each...

Description Usage Arguments Value Examples

View source: R/lib.R

Description

This works only for routing matrices that include all aggregate source and destination flows. It is often easier to build these indices manually via string processing or during the construction of the routing matrix.

Usage

1

Arguments

A

routing matrix of dimension m x k. This should be the reduced-rank version including all aggregate source and destination flows.

Value

list consisting of two component, src and dst, which are integer vectors of length k containing the index (in y = A x) of the source and destination flows that each point-to-point flow is part of.

Examples

1
2
data(cmu)
src.dst.ind <- getSrcDstIndices(cmu$A.full)

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