3
<title>The Laplace Distribution - GNU Scientific Library -- Reference Manual</title>
4
<meta http-equiv="Content-Type" content="text/html">
5
<meta name="description" content="GNU Scientific Library -- Reference Manual">
6
<meta name="generator" content="makeinfo 4.8">
7
<link title="Top" rel="start" href="index.html#Top">
8
<link rel="up" href="Random-Number-Distributions.html#Random-Number-Distributions" title="Random Number Distributions">
9
<link rel="prev" href="The-Exponential-Distribution.html#The-Exponential-Distribution" title="The Exponential Distribution">
10
<link rel="next" href="The-Exponential-Power-Distribution.html#The-Exponential-Power-Distribution" title="The Exponential Power Distribution">
11
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
13
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 The GSL Team.
15
Permission is granted to copy, distribute and/or modify this document
16
under the terms of the GNU Free Documentation License, Version 1.2 or
17
any later version published by the Free Software Foundation; with the
18
Invariant Sections being ``GNU General Public License'' and ``Free Software
19
Needs Free Documentation'', the Front-Cover text being ``A GNU Manual'',
20
and with the Back-Cover Text being (a) (see below). A copy of the
21
license is included in the section entitled ``GNU Free Documentation
24
(a) The Back-Cover Text is: ``You have freedom to copy and modify this
25
GNU Manual, like GNU software.''-->
26
<meta http-equiv="Content-Style-Type" content="text/css">
27
<style type="text/css"><!--
28
pre.display { font-family:inherit }
29
pre.format { font-family:inherit }
30
pre.smalldisplay { font-family:inherit; font-size:smaller }
31
pre.smallformat { font-family:inherit; font-size:smaller }
32
pre.smallexample { font-size:smaller }
33
pre.smalllisp { font-size:smaller }
34
span.sc { font-variant:small-caps }
35
span.roman { font-family:serif; font-weight:normal; }
36
span.sansserif { font-family:sans-serif; font-weight:normal; }
42
<a name="The-Laplace-Distribution"></a>
43
Next: <a rel="next" accesskey="n" href="The-Exponential-Power-Distribution.html#The-Exponential-Power-Distribution">The Exponential Power Distribution</a>,
44
Previous: <a rel="previous" accesskey="p" href="The-Exponential-Distribution.html#The-Exponential-Distribution">The Exponential Distribution</a>,
45
Up: <a rel="up" accesskey="u" href="Random-Number-Distributions.html#Random-Number-Distributions">Random Number Distributions</a>
49
<h3 class="section">19.6 The Laplace Distribution</h3>
52
— Function: double <b>gsl_ran_laplace</b> (<var>const gsl_rng * r, double a</var>)<var><a name="index-gsl_005fran_005flaplace-1505"></a></var><br>
53
<blockquote><p><a name="index-two_002dsided-exponential-distribution-1506"></a><a name="index-Laplace-distribution-1507"></a>This function returns a random variate from the Laplace distribution
54
with width <var>a</var>. The distribution is,
55
for -\infty < x < \infty.
56
</p></blockquote></div>
59
— Function: double <b>gsl_ran_laplace_pdf</b> (<var>double x, double a</var>)<var><a name="index-gsl_005fran_005flaplace_005fpdf-1508"></a></var><br>
60
<blockquote><p>This function computes the probability density p(x) at <var>x</var>
61
for a Laplace distribution with width <var>a</var>, using the formula
63
</p></blockquote></div>
70
— Function: double <b>gsl_cdf_laplace_P</b> (<var>double x, double a</var>)<var><a name="index-gsl_005fcdf_005flaplace_005fP-1509"></a></var><br>
71
— Function: double <b>gsl_cdf_laplace_Q</b> (<var>double x, double a</var>)<var><a name="index-gsl_005fcdf_005flaplace_005fQ-1510"></a></var><br>
72
— Function: double <b>gsl_cdf_laplace_Pinv</b> (<var>double P, double a</var>)<var><a name="index-gsl_005fcdf_005flaplace_005fPinv-1511"></a></var><br>
73
— Function: double <b>gsl_cdf_laplace_Qinv</b> (<var>double Q, double a</var>)<var><a name="index-gsl_005fcdf_005flaplace_005fQinv-1512"></a></var><br>
74
<blockquote><p>These functions compute the cumulative distribution functions
75
P(x), Q(x) and their inverses for the Laplace
76
distribution with width <var>a</var>.
77
</p></blockquote></div>