Fits von Mises kernel density to time-of-day data.
Fits von Mises kernel density to time-of-day data. Intended primarily for internal use: input checking is minimal.
a vector of times of observations in radians, ie. scaled to [0, 2π].
a vector of times in radians for which the density is required. This could be a vector of equidistant values in [0, 2π], eg.
bandwidth, the concentration parameter for the von Mises kernel: smaller values result in smoother curves.
Returns a vector of densities corresponding to the times in grid.
C code written by Mike Meredith.
getBandWidth for appropriate bandwidth.
1 2 3 4 5 6
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.