cumulativeFromDensity | R Documentation |
Get the cumulative distribution function given the distribution function.
cumulativeFromDensity(densityX, xlims, sanityChecks = TRUE)
densityX |
The probability density function. |
xlims |
the domain of definition of the density function. |
sanityChecks |
(optional parameter, default = TRUE) boolean value indicating wether to check if the density function is correctly defined. |
a callable function representing the cumulative distribution.
cumulativeProbability <- cumulativeFromDensity(normalDensity(0,1), c(-4,4), FALSE)
x <- seq(-4, 4, length.out=101)
plot(x, cumulativeProbability(x), type = "l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.