Description Usage Arguments Value Examples
View source: R/power_series_distributions.R
Geometric probability function
1 | pf_geometric(n, theta)
|
n |
Function support, with n = 1, 2, \cdots. |
theta |
A probability value, i.e, 0 < θ < 1. |
Calculated probability (vector)
1 2 3 4 5 | sapply(
X = 1L:1000L,
FUN = function(i)
pf_geometric(n = i, theta = 0.5)
) %>% sum
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.