Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 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

Animal Movement Tools

v0.1.4
GPL-3
Authors
Johannes Signer [aut, cre], Brian Smith [ctb], Bjoern Reineking [ctb], Ulrike Schlaegel [ctb], John Fieberg [ctb], Scott LaPoint [dtc]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.