distributions: Functions to work with distributions as objects

Description Usage Arguments

Description

make_distributions creates a distribution.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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 class 'vonmises_distr'
random_numbers(x, n = 100, ...)

## S3 method for class '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.


amt documentation built on Jan. 18, 2021, 5:05 p.m.