epiforecasts / EpiNow2

Estimate Realtime Case Counts and Time-varying Epidemiological Parameters
https://epiforecasts.io/EpiNow2/dev/
Other
116 stars 33 forks source link

`check_sparse_pmf_tail` fails if `span` (default 5) is >= `length(pmf` #801

Closed sbfnk closed 2 months ago

sbfnk commented 2 months ago

Reproducible Steps:

library("EpiNow2")
NonParametric(c(0.1, 0.5, 0.4))
#> Error in pmf[(length(pmf) - span + 1):length(pmf)]: only 0's may be mixed with negative subscripts

Created on 2024-09-30 with reprex v2.1.1

EpiNow2 Version: latest main