Calculates relative spawning intensity for numeric dates using a
von Mises density on the unit circle of the year.
Usage
spawning_density(numeric_dates, mu, kappa)
Arguments
- numeric_dates
A vector of numeric dates (e.g., 2023.45). Only the
fractional part is used to determine day-of-year.
- mu
The mean spawning date as a fraction of a year in [0, 1). For
example, 0.5 is mid-year.
- kappa
The concentration parameter for the spawning distribution.
Value
A numeric vector of relative spawning intensities with the same
length as numeric_dates
.
Examples
# Peak at mid-year with moderate spread
spawning_density(numeric_dates = c(2020.45, 2020.50, 2020.55),
mu = 0.5, kappa = 4)
#> [1] 0.6321530 0.7688573 0.6321530