Package: finitization 0.1.0

finitization: Moment-Preserving Finitization for Power-Series Distributions

Implements the finitization of discrete probability distributions, a technique that approximates a distribution by preserving a finite number of moments. These finitized distributions enable faster random variate generation than inverse transform sampling and are useful in simulation and statistical modeling.

Authors:Bogdan Oancea [aut, cre]

finitization_0.1.0.tar.gz

finitization_0.1.0.tgz(r-4.6-x86_64)finitization_0.1.0.tgz(r-4.6-arm64)finitization_0.1.0.tgz(r-4.5-x86_64)finitization_0.1.0.tgz(r-4.5-arm64)
finitization_0.1.0.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html
card.svg |card.png
finitization/json (API)

# Install 'finitization' in R:
install.packages('finitization', repos = c('https://bogdanoancea.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/bogdanoancea/finitization/issues

Uses libs:
  • ginac– GiNaC symbolic framework runtime library
  • cln– Class Library for Numbers
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

ginacclncpp

2.81 score 24 exports 2 dependencies

Last updated from:7ab9719f6f (on master). Checks:9 FAIL, 1 ERROR, 3 WARNING. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64FAIL257
linux-devel-x86_64FAIL278
source / vignettesERROR761
linux-release-arm64FAIL194
linux-release-x86_64FAIL215
macos-release-arm64FAIL136
macos-release-x86_64FAIL283
macos-oldrel-arm64FAIL110
macos-oldrel-x86_64FAIL187
windows-develWARNING238
windows-releaseWARNING213
windows-oldrelWARNING229
wasm-releaseFAIL216

Exports:dbinomdlogdnegbinomdpoisgetBinomialMFPSgetLogarithmicMFPSgetNegativeBinomialMFPSgetPoissonMFPSpbinomplogpnegbinomppoisprintFinitizedBinomialDensityprintFinitizedLogarithmicDensityprintFinitizedNegativeBinomialDensityprintFinitizedPoissonDensityqbinomqlogqnegbinomqpoisrbinomrlogrnegbinomrpois

Dependencies:RcpprootSolve

Readme and manuals

Help Manual

Help pageTopics
The density for the finitized Binomial distribution.dbinom
The density for the Logarithmic distribution.dlog
The density for the finitized Negative Binomial distribution.dnegbinom
The density for the finitized Poisson distribution.dpois
Maximum feasible parameter space for the finitized Binomial distribution.getBinomialMFPS
Maximum feasible parameter space for the finitized Logarithmic distribution.getLogarithmicMFPS
Maximum feasible parameter space for the finitized Negative Binomial distribution.getNegativeBinomialMFPS
Maximum feasible parameter space for the finitized Poisson distribution.getPoissonMFPS
The cumulative distribution function (CDF) for the finitized Binomial distribution.pbinom
The cumulative distribution function (CDF) for the finitized Logarithmic distribution.plog
The cumulative distribution function (CDF) for the finitized Negative Binomial distribution.pnegbinom
The cumulative distribution function (CDF) for the finitized Poisson distribution.ppois
The string representation of the probability density function for the finitized Binomial distribution.printFinitizedBinomialDensity
The string representation of the probability density function for the finitized Logarithmic distribution.printFinitizedLogarithmicDensity
The string representation of the probability density function for the finitized Negative Binomial distribution.printFinitizedNegativeBinomialDensity
The string representation of the probability density function for the finitized Poisson distribution.printFinitizedPoissonDensity
The quantile function for the finitized Binomial distribution.qbinom
The quantile function for the finitized Logarithmic distribution.qlog
The quantile function for the finitized Negative Binomial distribution.qnegbinom
The quantile function for the finitized Poisson distribution.qpois
Random values generation for the finitized Binomial distribution.rbinom
Random values generation for the finitized Logarithmic distribution.rlog
Random values generation for the finitized Negative Binomial distribution.rnegbinom
Random values generation for the finitized Poisson distribution.rpois