twolodzko / extraDistr

Additional univariate and multivariate distributions
51 stars 11 forks source link

Issue when only 1 color is present #26

Open luismieryteran opened 2 years ago

luismieryteran commented 2 years ago

Running rmvhyper(nn = 1, n = 2, k = 1) returns 0 whereas I think it should return 1, since we're making 1 draw from an urn with 2 balls of a single color. Am I misunderstanding something?

twolodzko commented 2 years ago

Hi, you're correct, it seems to be a bug.