dWn1D {sdetorus} | R Documentation |
WN density in 1D
Description
Computation of the WN density in 1D.
Usage
dWn1D(x, mu, sigma, maxK = 2L, expTrc = 30, vmApprox = 0L, kt = 0,
logConstKt = 0)
Arguments
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 |
Value
A vector of size n
containing the density evaluated at x
.
Examples
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)))
[Package sdetorus version 0.1.10 Index]