Learn R Programming

cascsim (version 0.4)

Density: Density function.

Description

Density function.

Usage

Density(object, x, ...)

# S4 method for Normal Density(object, x, log = FALSE)

# S4 method for Beta Density(object, x, log = FALSE)

# S4 method for Exponential Density(object, x, log = FALSE)

# S4 method for Gamma Density(object, x, log = FALSE)

# S4 method for Geometric Density(object, x, log = FALSE)

# S4 method for Lognormal Density(object, x, log = FALSE)

# S4 method for NegativeBinomial Density(object, x, log = FALSE)

# S4 method for Pareto Density(object, x, log = FALSE)

# S4 method for Poisson Density(object, x, log = FALSE)

# S4 method for Uniform Density(object, x, log = FALSE)

# S4 method for Weibull Density(object, x, log = FALSE)

# S4 method for Empirical Density(object, x, log = FALSE)

Arguments

object

Distribution Object

x

Variable value

...

Additional function arguments

log

Boolean variable to indicate whether to return log of probability

Examples

Run this code
# NOT RUN {
xPareto <- new("Pareto",p1=20,p2=3)
Density(xPareto,50)
# }

Run the code above in your browser using DataLab