laplace.samps: Generate a matrix of samples from a Laplace distribution.

Description Usage Arguments Value Examples

Description

Draws Laplace samples and formats them into a matrix, where each row contains a sample.

Usage

1
laplace.samps(mu = 0, sigma = 1, n = 25, nsamps = 10000)

Arguments

mu

The expectation of the Laplace distribution from which to draw samples.

sigma

The standard deviation of the Laplace distribution from which to draw samples.

n

The number of independent observations to include in each sample.

nsamps

The number of samples to generate.

Value

A matrix of independent Laplace-distributed random numbers with nsamps rows and n columns.

Examples

1
laplace.samps(10, 1, 5, 8)

mdedge/stfspack documentation built on May 9, 2019, 8:17 a.m.