Learn R Programming

algebraic.dist (version 0.9.1)

density.beta_dist: Probability density function for a beta distribution.

Description

Returns a function that evaluates the beta PDF at given points.

Usage

# S3 method for beta_dist
density(x, ...)

Value

A function function(t, log = FALSE, ...) returning the density (or log-density) at t.

Arguments

x

A beta_dist object.

...

Additional arguments (not used).

Examples

Run this code
x <- beta_dist(2, 5)
f <- density(x)
f(0.3)
f(0.5)

Run the code above in your browser using DataLab