calculate.cdf: Calculate the cumulative distribution function for a...

calculate.cdfR Documentation

Calculate the cumulative distribution function for a distribution

Description

Calculate the cumulative distribution function for a distribution

Usage

calculate.cdf(dist, q, lower.tail = T, log.p = F, n.sim = 1000 * dist@n.var)

Arguments

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

Details

Note to developers: this function should not be overridden. Override do.calculate.cdf instead

Value

If x is a vector, a scalar density. If x is a matrix, a numeric vector of densities, one for each row in x


tfojo1/distributions documentation built on July 27, 2024, 3:29 p.m.