Description Usage Arguments Examples
View source: R/optim_helper_functions.R
Binomial density function with arbitrary precision. Uses library Rmpfr for arbitrary precision arithmetic.
1 | dbinom_APA(x, size, prob, precBits = 128)
|
x |
quantile (number of Bernoulli successes with success probability prob) |
size |
number of Bernoulli trials to perform with success probability prob |
prob |
probability of success for each independent Bernoulli trial |
precBits |
number of bits of precision |
1 2 3 | # compare apa to non apa dpois:
sum(dbinom_APA(x = 0:10, size = 10, prob=0.2, precBits = 256))
sum(dbinom(x = 0:10, size = 10, prob=0.2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.