Description Usage Arguments Value Examples
View source: R/RcppExports.R View source: R/simulateC.R
A function for simulation of generalized birthday problem
1 |
k |
Integer. k persons shared birthday. |
room |
Integer. Room size to be tested. |
repliate |
Integer. Replicate size. |
A floating value indicating the probability of at least k persons sharing birthday in a room
1 2 3 4 | system.time({
p <- simulateC(k=2, roomSize=23, replicate=1e7)
})
p
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.