Description Usage Arguments Details Value Author(s) References See Also Examples
This function estimates via Monte Carlo the probability of success and the expected values of the number of broadcasts, transmissions and receptions for an Opportunistic model.
1 | MonteCarlo(p, M = 10^4)
|
p |
vector of probabilities of length |
M |
Total number of Monte Carlo simulations |
N is computed from p
length. M is code10^4 by default.
A vector with the success probability and expected values (broadcast, transmissions and receptions) for an N Opportunistic model.
Christian E. Galarza and Jonathan M. Olate
Biswas, S., & Morris, R. (2004). Opportunistic routing in multi-hop wireless networks. ACM SIGCOMM Computer Communication Review, 34(1), 69-74.
1 2 3 4 5 | #Monte Carlo simulation for an N=3 Opportunistic system with probabilities
#p = c(0.0,0.4,0.1)
res2 = MonteCarlo(p=c(0.9,0.4,0.1),M=10^4)
res2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.