| dWn1D | R Documentation | 
Computation of the WN density in 1D.
dWn1D(x, mu, sigma, maxK = 2L, expTrc = 30, vmApprox = 0L, kt = 0,
  logConstKt = 0)
x | 
 a vector of length   | 
mu | 
 mean parameter. Must be in   | 
sigma | 
 diffusion coefficient.  | 
maxK | 
 maximum absolute value of the windings considered in the computation of the WN.  | 
expTrc | 
 truncation for exponential:   | 
vmApprox | 
 whether to use the von Mises approximation to a wrapped normal (  | 
kt | 
 concentration for the von Mises, a suitable output from   | 
logConstKt | 
 the logarithm of the von Mises normalizing constant associated to the concentration   | 
A vector of size n containing the density evaluated at x.
mu <- 0
sigma <- 1
dWn1D(x = seq(-pi, pi, l = 10), mu = mu, sigma = sigma, vmApprox = 0)
# von Mises approximation
kt <- scoreMatchWnVm(sigma2 = sigma^2)
dWn1D(x = seq(-pi, pi, l = 10), mu = mu, sigma = sigma, vmApprox = 1, kt = kt,
      logConstKt = -log(2 * pi * besselI(x = kt, nu = 0, expon.scaled = TRUE)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.