laplace

Purpose

Sampling from a Laplace distribution.

Description

[y] = laplace(dims,flipS) - generates a matrix with random variables distributed according to a Laplace distribution with parameter lambda=1.

Function parameters:

dims

- the dimensions of the returning matrix y.

flipS

- an indicator to switch between symmetric and nonsymmetric noises (default is 1).

See Also

ogp, ogptrain, c_reg_exp, demogp_reg


Pages: Index

Copyright (c) Lehel Csató (2001-2004)