mitchelloharawild / distributional

Vectorised distributions for R
https://pkg.mitchelloharawild.com/distributional
GNU General Public License v3.0
94 stars 15 forks source link

dist_degenerate: add support for multiple values #54

Closed DavidBarke closed 3 years ago

DavidBarke commented 3 years ago

Hello Mitchell,

as far as I can see all distributions except dist_degenerate() support evaluation of multiple values for a single distribution, for example:

density(dist_normal()[[1]], 1:5)

In addition, returning NaN when calling quantile() with values outside of [0, 1] would be more consistent as well.

Best regards David