Learn R Programming

circglmbayes (version 1.3.0)

rvmc: 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.