Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Potentially undefined behaviour when initialised with invalid probability distribution. #7

@s-ilyas

Description

@s-ilyas

Ran into potentially undefined behaviour (?) when initialised with a probability distribution that does not sum to 1.
Unless there is a misunderstanding (which should be clarified in the description), I propose to add a simple check such as sum(dist) == 1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions