calculate.cdf | R Documentation |
Calculate the cumulative distribution function for a distribution
calculate.cdf(dist, q, lower.tail = T, log.p = F, n.sim = 1000 * dist@n.var)
dist |
An object of class Distribution or a subclass |
n.sim |
If the values are to be calculated by random sample generation, how many random samples to generate |
x |
The values of the parameters at which to calculate the CDF. May be either a vector, if the CDF at a single point is desired, or a matrix where each row represents one point and each column represents a variable in the distribution |
log |
A logical indicating whether to return the CDF on the log scale |
Note to developers: this function should not be overridden. Override do.calculate.cdf
instead
If x is a vector, a scalar density. If x is a matrix, a numeric vector of densities, one for each row in x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.