distr6: R6 Object-Oriented Probability Distributions Interface in R
Raphael Sonabend and Franz J. Király
, The R Journal (2021) 13:1, pages 444-466.
Abstract distr6 is an object-oriented (OO) probability distributions interface leveraging the extensibil ity and scalability of R6 and the speed and efficiency of Rcpp. Over 50 probability distributions are currently implemented in the package with ‘core’ methods, including density, distribution, and gener ating functions, and more ‘exotic’ ones, including hazards and distribution function anti-derivatives. In addition to simple distributions, distr6 supports compositions such as truncation, mixtures, and product distributions. This paper presents the core functionality of the package and demonstrates examples for key use-cases. In addition, this paper provides a critical review of the object-oriented programming paradigms in R and describes some novel implementations for design patterns and core object-oriented features introduced by the package for supporting distr6 components.
Received: 2020-10-30; online 2021-06-17, supplementary material, (1.7 KiB)@article{RJ-2021-055, author = {Raphael Sonabend and Franz J. Király}, title = {{distr6: R6 Object-Oriented Probability Distributions Interface in R}}, year = {2021}, journal = {{The R Journal}}, doi = {10.32614/RJ-2021-055}, url = {https://doi.org/10.32614/RJ-2021-055}, pages = {444--466}, volume = {13}, number = {1} }