rW: Simulate 'W' as Described in Wood(1994)

Description Usage Arguments Value Author(s) Examples

View source: R/rW.R

Description

Auxilliary variable simulation for rejection sampling of rmf.vector, as described in Wood(1994).

Usage

1
rW(kap, m)

Arguments

kap

a positive scalar.

m

a positive integer.

Value

a number between zero and one.

Author(s)

Peter Hoff

Examples

1
2
3
4
5
6
7
rW(pi,4)

## The function is currently defined as
function (kap, m) 
{
    .C("rW", kap = as.double(kap), m = as.integer(m), w = double(1))$w
  }

rstiefel documentation built on June 12, 2018, 5:19 p.m.