Learn R Programming

networkTomography (version 0.3)

calcN: Compute total traffic from a particular time.

Description

Compute total traffic from a particular time.

Usage

calcN(yt, A1)

Arguments

yt
length-m numeric vectors of observed aggregate flows at a particular time
A1
m x m matrix containing the full-rank portion of the network's routing matrix, as supplied by decomposeA

Examples

Run this code
data(bell.labs)
A.decomp <- decomposeA(bell.labs$A)
total.traffic <- calcN(yt=bell.labs$Y[1,], A1=A.decomp$A1)
total.traffic == sum(bell.labs$X[1,])

Run the code above in your browser using DataLab