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)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.