-
Notifications
You must be signed in to change notification settings - Fork 8
GCD calculation #426
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
Comments
That mean median comparison though. When I search for The lack of tests may mean there's a bug lurking, so that would be a potential gain from switching over to a non-DIY implementation. |
Tempting speedups and testedness, but Rcpp also means potential extra installation hassle for some users and potential license headaches (assuming we don't already transitively depend on Rcpp). Without evidence that this impacts |
We may not even want to have a GCD algorithm at all. It seems like if the guessed period doesn't appear in the diffs of the unique times, then we have some really weird/wrong data. And if we make that an error, then we can move from calculating the GCD to taking the smallest diff and simply checking that it is a CD. |
Actually, further, we might not need a GCD at all. I'm not sure why I used this for
And we're not using GCD in [But we might actually be missing a |
We do. I wonder if tsibble is pushed into GPL because of Rcpp. r$> pak::pkg_deps_explain("cmu-delphi/epiprocess", "Rcpp")
epiprocess -> tsibble -> anytime -> Rcpp |
(Side note: we could reduce runtime by 60% by using base R for checks instead of checkmate, and 70%+ by omitting some checks if possible. Still not sure we even want gcd at all anymore though. But this brings to attention that we should take care about validation in inner loops.) |
I'm not entirely sure what the use case for
gcd_num()
is, but is it worth implementing differently? We don't currently import Rcpp (which the second version uses):Created on 2024-03-06 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: