Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for irregular time series #223

Merged
merged 4 commits into from
Nov 23, 2022
Merged

Support for irregular time series #223

merged 4 commits into from
Nov 23, 2022

Conversation

richfitz
Copy link
Member

Fixes #97

@codecov
Copy link

codecov bot commented Nov 18, 2022

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (8570810) compared to base (d73f0ff).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head 8570810 differs from pull request most recent head bc0049e. Consider uploading reports for the commit bc0049e to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #223   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines         2834      2840    +6     
=========================================
+ Hits          2834      2840    +6     
Impacted Files Coverage Δ
R/if2.R 100.00% <ø> (ø)
R/particle_filter.R 100.00% <ø> (ø)
R/particle_filter_data.R 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@richfitz richfitz marked this pull request as ready for review November 21, 2022 09:11
stop(sprintf("The first time must be at least 1 (but was given %d)",
model_time_end[[1L]]))
if (any(model_time_end < 0)) {
## This condition is actually only required for discrete time
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but this isn't wrapped in a check to allow it for continuous models?

## models; for continuous time models this would be fine.
stop("'initial_time' must be non-negative")
}
if (initial_time > model_time_end[[1L]]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this check previously against model_time_end[[1L] - 1?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm think this was that we used to require at least one time interval to have passed before the first data period, because we used to have the compare function take the current state and the previous state (so that cumulative variables could be converted into differences between reporting periods). But not entirely sure really, and it's certainly a complication that no longer seems required

@richfitz richfitz merged commit 3ab7290 into master Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support irregular steps
2 participants