rwrpcauchy function

Sample from wrapped Cauchy distribution

Sample from wrapped Cauchy distribution

rwrpcauchy(n, mu, rho)

Arguments

  • n: Number of samples
  • mu: Mean parameter
  • rho: Concentration parameter

Returns

Vector of n samples from wrpcauchy(mu, rho)

Details

Uses basic rejection sampling, based on dwrpcauchy(), which might be inefficient for large rho.

Other functions in hmmTMB

Related functions from the same R package