Learn R Programming

amt (version 0.0.7)

distributions: Functions to work with distributions as objects

Description

make_distributions creates a distribution.

Usage

make_distribution(name, params, ...)

make_exp_distr(rate = 1)

make_unif_distr(min = -pi, max = pi)

make_vonmises_distr(kappa = 1)

make_gamma_distr(shape = 1, scale = 1)

random_numbers(x, n = 100, ...)

# S3 method for vonmises_distr random_numbers(x, n = 100, ...)

# S3 method for amt_distr random_numbers(x, n = 100, ...)

Arguments

name

[char(1)] Short name of distribution. See available_distr() for all currently implemented distributions.

params

[list] A named list with parameters of the distribution.

...

none implemented.

rate

[double(1)>0] The rate of the exponential distribution.

min

[double(1)] The minimum of the uniform distribution.

max

[double(1)] The minimum of the uniform distribution.

kappa

[double(1)>=0] Concentration parameter of the von Mises distribution.

shape, scale

[double(1)>=0] Shape and scale of the Gamma distribution

x

[amt_distr] A distribution object.

n

[integer(1)=100]{>0} The number of random draws.