Learn R Programming

circlus (version 0.0.2)

rpkb: Random Sampling from PKB Distributions using ACG or Projected Saw Distributions

Description

Generates a random sample from PKB distributions.

Usage

rpkb(n, rho, mu, method = "ACG")

Value

A matrix with the generated values.

Arguments

n

The number of random draws.

rho

A numeric giving the concentration parameter.

mu

A numeric vector giving the mean direction parameter.

method

A character indicating the method to use, "ACG" for angular central Gaussian distribution envelopes and "Saw" for the use of projected Saw distributions.

Examples

Run this code
rpkb(10, 0.95, c(1, 0, 0))

Run the code above in your browser using DataLab