-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Vectorize object construction of distributions: * Implement methods for distribution objects `{c,print,summary,as.data.frame,...}.distribution`. * Rewrite construction of families using `data.frame` instead of `list`. * Adapt all distributions including their methods except `Categorical` and `Multinomial`. * Adapt `base` and `ggplot2` plotting functions to handle vectorized distribution objects. * Rewritten `Erlang` distribution building now on `stats::{d,g,q,r}gamma()`. * Add tests for new `{methods}.distribution` and add tests for all vectorized distributions. * Add tests for `ggplot2` and (new) `Erlang`. * Pass addtional arguments "..." to `{d,p,q}` functions. * Adapt manuals (no proper desription of vectorized distiribution objects yet). * Modify tests (!) for checking print output for few distributions: * `print.distriubtion()` is currently printing the class name (could be modified). * This effects ChiSquare, FisherF, LogNormal, NegativeBinomial, StudentsT. * Also add missing ggplot2 dependency in `test-plot.R`. * Move ggplot2 plotting functions to `plot.R` and rename testfile to `test-plot.R` * Run formatting and do styling * Small fix in helper function to vectorize distributions: * Fix in `apply_dpqr()` due to error with `drop = FALSE`. * Modify handling of, e.g., two probabilites and two distributions. * Add more tests to check vectorization. * Adapt manuals to document vectorization in `random()`, `pdf()`, `log_pdf()`, `cdf()`, `quantile()`. * Update "apply_dpqr" (again) * Modify how to handle `drop` argument (consistent to `drop()`) * Increase performance. * Extend tests. * Solely for `Normal()` so far. * Update all other distriubtion to accomodate new changes: * New apply_dpqr with `drop` argument now matching `drop()`. * Modification of tests (!) to pass comparison due to new naming convention [test-{Erlang,Frechet,GeneralisedExtremeValue,GeneralisedPareto,ReversedWeibull,methods}.R
- Loading branch information
Showing
204 changed files
with
6,130 additions
and
2,005 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
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.