Sum of independent identically distributed random variables
SofIID(X, n = 2, progress = TRUE, fractions = attr(X, "fractions"))
A random variable
The number of Xs to sum
If TRUE, display a progress bar
If TRUE, return the probabilities as fractions
X.Bern <- RV(c(1,0), c(.5,.5))
S5 <- SofIID(X.Bern, 5)
S128 <- SofIID(X.Bern, 128)
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.