Learn R Programming

Rsubbotools (version 0.0.1)

qlaplace: Returns quantile from Laplace Distribution

Description

The qlaplace returns the density at point x for the Laplace distribution with parameters \(a\) and \(m\).

Usage

qlaplace(x, m = 0, a = 1)

Value

a vector containing the values for the densities.

Arguments

x

(numeric) - value in the range \((-\infty, \infty)\) to evaluate the density.

m

(numeric) - location parameter.

a

(numeric) - scale parameter. Must be in the range \((0, \infty)\).

Details

The Laplace distribution is a distribution controlled by two parameters, with formula: $$f(x;a,m) = \frac{1}{2a} e^{- \left| \frac{x-m}{a} \right| }$$ where \(a\) is a scale parameter, and \(m\) is a location parameter.