Skip to content

can't use rmultinom with n = 1 #16

@bluelovers

Description

@bluelovers

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions