libRmath.js: can't use rmultinom with n = 1
can’t use libRmath.Multinomial rmultinom with n = 1, only when n > 1, it will not throw error
const result = sequence(n).map(() => _rmultinom(size, prob, rng));
^
TypeError: sequence(...).map is not a function
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 16 (6 by maintainers)
@jacobbogers it work without throw now
I thought u are already fix it, just waiting some other job done, so didn’t publish lol
demo code about what i saying lol