rpkbN: RNG for Poisson Kernel Based distribution, N dimensions

Description Usage Arguments Value

View source: R/rpkbN.R

Description

Random number generation for the PKB distribution in N dimensions using the rejection sampling method.

Usage

1
rpkbN(n, mu, rho, method = "rejunif")

Arguments

n

number of observations to be generated.

mu

the location parameter with same dimension as the quantiles to be generated. Normalized to length one.

rho

the concentration parameter, with 0 <= rho < 1. Must be a scalar.

method

string specifying RNG method for rpkbN; current options are 'rejunif', rejection sampling using the uniform as the dominating distribution, and 'rejvmf', rejection sampling using the von Mises Fisher distribution as the dominating distribution

Value

A list with the following objects:

x

A n X p matrix of return values, where p is lenght(mu)

numAccepted

Number of samples accepted in the rejection sampling

numTries

Total number of samples generated in the rejection sampling


ahfoss/pkbd documentation built on June 4, 2017, 3:20 a.m.