function pdf = laplace_my_pdf ( x, a, b )

%*****************************************************************************80
%
%% laplace_my_pdf() evaluates the Laplace PDF.
%
%  Discussion:
%
%    Had to insert the idiotic "_my" in the name because Octave has a
%    similarly named function in its automatically installed package.
%
%    PDF(X)(A,B) = exp ( - abs ( X - A ) / B ) / ( 2 * B )
%
%    The Laplace PDF is also known as the Double Exponential PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real X, the argument of the PDF.
%
%    real A, B, the parameters of the PDF.
%    0.0 < B.
%
%  Output:
%
%    real PDF, the value of the PDF.
%
  pdf = exp ( - abs ( x - a ) / b ) / ( 2.0 * b );

  return
end
