dvmkern: Circular kernel probability density function.

Description Usage Arguments Details Value See Also Examples

View source: R/activity_code_1_1.r

Description

Optionally weighted Von Mises kernel probability densities.

Usage

1
dvmkern(x, dat, wt = NULL, bw = NULL, adj = 1)

Arguments

x

Numeric vector of radian times at which to evaluate the PDF.

dat

Numeric vector of radian time data to which the PDF is fitted.

wt

A numeric vector of weights for each dat value.

bw

Numeric value for kernel bandwidth.

adj

Numeric kernel bandwidth multiplier.

Details

If bw not provided it is calculated internally using bw.calc. The adj argument is used to adjust bw to facilitate exploration of fit flexibility.

Value

Numeric vector of probability densities evaluated at x.

See Also

density.circular, bwcalc

Examples

1
2
3
4
5
#Example with made up input
tt <- runif(100,0,2*pi)
xx <- seq(0,2*pi, pi/256)
pdf <- dvmkern(xx, tt)
plot(xx, pdf, type="l")

Example output



activity documentation built on May 30, 2017, 8:18 a.m.