rvmc: Generate a random variate from the von Mises distribution

View source: R/RcppExports.R

rvmcR Documentation

Generate a random variate from the von Mises distribution

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

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.


keesmulder/circglmbayes documentation built on July 24, 2022, 6:39 a.m.