-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement
dist_spec
interface (#363)
* implement `dist_spec` interface * Add skipping of stan tests in the expected places * fix checks * fix epinow example * update syntax in more places * update another example * move parenthesis to the right place * update uncertainty in estimate_infections example * fix use of generation_time_opts as resource to call get_generation_time() * break line to make R CMD CHECK happy * fix uses of `trunc_opts` * fix updating of `cur_len` in ragged convolution * remove bounds on mean parameters * use dist_spec syntax in `estimate_delays` * add print function for `dist_spec` * add names to printing if given * clarify printouts * reduce unnecessary function calls * Revert "reduce unnecessary function calls" This reverts commit 9037e21. * fix typo * add default option for generation time * simplify delay inits * update pmf doc * dist -> distribution * fix max of np dist logic * simplify pmf truncation syntax * fix typos and use `is` * extract function for stan code conversion * fix variable name * fix function name * do truncnorm with appropriate lengths * fix initial condition sampling * update `to_stan` documentation * fix typo * stan model with unified delays * update R access to unified dist interface * update tests * ensure arrays are arrays * simplify stan seq (and avoid conflict with R) * fix test * fix simulation models * fix final tests * update usage of c -> + * Automatic readme update * update examples/doc and re-doc * linting * update docs * final requested lint * update return type of bootstrapped_dist_fit * redoc * update estimate_delay to reflect changes * dot product for all convolutions * report gt mean and var * bug fix in calculation of max delays * Automatic readme update * update tests * clean whitespace * reduce number of calculations by precomputing len * optional head/tail * Revert "optional head/tail" This reverts commit 8c59db1. * don't convolve first pmf * reduce vector copying * fix reversing * fix printing of combined distributions * add exampples, export, and add basic dist plotting * Automatic readme update * add some tests for dist_spec * add tests for +.dist_spec * add tests for mean.dist_spec * add some basic additional tests and docs * linting * fix linting * export c * fix plotting to work with c() method for dist_spec * more linting fixes * remove extract line in generation_time.stan * add a check in convolve_rev_pmf when len >= xlen + ylen and update tests * be more efficient when calc discrete pmfs * catch missing indexes in omf calc * clarify comments * add tolerance for +.dist_spec * don't load testthat * trigger benchmarking * remove benchmark trigger * linting * Automatic readme update * trigger benchmarking * remove benchmark trigger * refine tolerance checks for convolution * fix example * add an internal function * trigger benchmarking * benchmarking off * add back in missing tolerance docs * fix edge case check for length 1 pmfs * whitespace linting * test more carefully * use commas like a smart boy * crank that adapt delta handle * Update R/create.R Co-authored-by: Sebastian Funk <[email protected]> * Update R/get.R Co-authored-by: Sebastian Funk <[email protected]> * Update R/opts.R Co-authored-by: Sebastian Funk <[email protected]> * Update R/dist.R Co-authored-by: Sebastian Funk <[email protected]> * fixed @internal and brackets + fcase * don't export c.dist_spec * drop c() examle from plot --------- Co-authored-by: Sam Abbott <[email protected]> Co-authored-by: GitHub Action <[email protected]>
- Loading branch information
1 parent
1b25f69
commit d0bea23
Showing
91 changed files
with
2,042 additions
and
1,137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ | |
^\.devcontainer$ | ||
^CRAN-SUBMISSION$ | ||
^touchstone$ | ||
^\.benchmark$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,4 @@ inst/include/*.o | |
src | ||
|
||
.DS_Store | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.