do.calculate.cdf: Internal function for subclasses to calculate the cumulative...

do.calculate.cdfR Documentation

Internal function for subclasses to calculate the cumulative density function for a distribution

Description

This function is provided to be overriden by developers. End users should instead call calculate.cdf

Usage

do.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

Details

The default implementation generates random samples and takes the mean number of samples where all variables are <= the given values of q The wrapper calculate.cdf takes care of matching variables (so the 'q' passed to this function is clean) and formatting the return value and generating warnings for any improper variables


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