rvmc: Generate a random variate from the von Mises distribution

Description Usage Arguments Value

View source: R/RcppExports.R

Description

This function generates a set of data from the von Mises distribution. If kappa is very small, return a circular uniform draw, as otherwise the algorithm will fail.

Usage

1
rvmc(n, mu, kp)

Arguments

n

The number of random variates required.

mu

The required mean direction, mu.

kp

The required concentration, kappa.

Value

A vector of length n containing VM random variates.


circglmbayes documentation built on Jan. 22, 2021, 5:09 p.m.