Lappdf

Definition

Y = lappdf(X, \mu, b) returns the probability density function of the Laplace distribution with location parameter mu and scale parameter b, evaluated at the values in X.

f(x|\mu,b) = \frac{1}{2b} \exp \left( -\frac{|x-\mu|}{b} \right) \,\!
 = \frac{1}{2b}  \left\{\begin{matrix}  \exp \left( -\frac{\mu-x}{b} \right) & \mbox{if }x < \mu  \\[8pt]  \exp \left( -\frac{x-\mu}{b} \right) & \mbox{if }x \geq \mu  \end{matrix}\right.

Parameters

x (input, double)
mu (input, double)
location parameter
b (input, double)
scale parameter b >0.

See Also

Cauchypdf, exppdf, gampdf, Lognpdf, Normpdf, Poisspdf