Learn R Programming

Opportunistic (version 1.2)

Expected: Theoretical broadcasts/transmissions/receptions for an Opportunistic model

Description

This function computes the probability of success and the expected values of the number of broadcasts, transmissions and receptions for an Opportunistic model.

Usage

Expected(p)

Arguments

p

vector of probabilities of length N where N represents the number of hops

Value

A matrix with the probabilities and expected values for an Opportunistic model for all hops sizes <= N

References

Biswas, S., & Morris, R. (2004). Opportunistic routing in multi-hop wireless networks. ACM SIGCOMM Computer Communication Review, 34(1), 69-74.

See Also

routes, MonteCarlo

Examples

Run this code
#An N=3 Opportunistic system with probabilities p = c(0.0,0.4,0.1)
res1 = Expected(p=c(0.9,0.4,0.1))
res1

Run the code above in your browser using DataLab