norm.samps: Generate a matrix of samples from a normal distribution.

Description Usage Arguments Value Examples

Description

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

Usage

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

Arguments

mu

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

sigma

The standard deviation of the normal 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 normally distributed random numbers with nsamps rows and n columns.

Examples

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

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