Description Usage Arguments Value Author(s) See Also Examples

Fits von Mises kernel density to time-of-day data. Intended primarily for internal use: input checking is minimal.

1 | ```
densityFit(x, grid, bw)
``` |

`x` |
a vector of times of observations in |

`grid` |
a vector of times in |

`bw` |
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 | ```
# Get example data:
data(simulatedData)
densityFit(tigerObs, c(0, pi/2, pi, 3*pi/2, 2*pi), 50)
# Densities at 6am and 6pm are fairly high, at midnight and midday, tiny.
# A crepuscular species!
``` |

overlap documentation built on May 29, 2017, 8:05 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.