hsloot / rmo

An R package for Marshall--Olkin distributions and copulas.
https://hsloot.github.io/rmo/
GNU General Public License v3.0
5 stars 2 forks source link

Feat/alias method #71

Closed hsloot closed 3 years ago

hsloot commented 3 years ago

Related issues

Closes/Fixes #52

Checklist

Only for new or refactored algorithms:

Optional, but recommended:

Description

Implements the Alias method for discrete integer sampling.

codecov[bot] commented 3 years ago

Codecov Report

Merging #71 (279f62b) into master (df47221) will increase coverage by 0.13%. The diff coverage is 97.56%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #71      +/-   ##
==========================================
+ Coverage   97.13%   97.26%   +0.13%     
==========================================
  Files          27       28       +1     
  Lines         943     1062     +119     
==========================================
+ Hits          916     1033     +117     
- Misses         27       29       +2     
Impacted Files Coverage Δ
...rmolib/random/univariate/discrete_distribution.hpp 97.45% <97.45%> (ø)
...olib/random/univariate/r_discrete_distribution.hpp 97.16% <100.00%> (+0.02%) :arrow_up:
src/sample.cpp 100.00% <100.00%> (+3.22%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update df47221...279f62b. Read the comment docs.