getDist.fcn: Distribution Function

View source: R/getDist.R

getDist.fcnR Documentation

Distribution Function

Description

Gets the density, cumulative distribution, quantile, or random generation of the specified distribution. This function is used primarily as a support function for probPlot.

Usage

getDist.fcn(distribution, what = "q")

Arguments

distribution

the name of the distribution. See Details.

what

a character indicating which form to retrun. Must be "q" for quantile, "d" for density, "p" for cumulative distribution, or "r" for random generation.

Details

For general use, distribution should be one of "normal," "lognormal," "pearsonType3," "logpearsonType3," "exponential," "logistic," or "uniform." Partial matching is done, so only as many characters to make a unique match are required. Other distributions can be retrieved by specifying the base name of the distribution. That option can be useful if other packages that contain distribution functions have been loaded.

Value

The specified function.

See Also

Normal, Lognormal, Exponential, Logistic, Uniform, PearsonIII, LogPearsonIII,


USGS-R/smwrGraphs documentation built on Oct. 11, 2022, 6:11 a.m.