Skip to content

Gaussian & LogNormal distributions #775

@dhardy

Description

@dhardy

Negative standard deviation

Currently Normal::new checks that std_dev is not negative. I see no need to keep this check (GSL lacks it), though it should be pointed out that effectively the standard deviation will be std_dev.abs().

The only drawback is that calculations erroneously producing a negative value would no longer be detected, though I doubt this often happens (and non-negative erroneous values would still not be detected).

Metadata

Metadata

Assignees

No one assigned

    Labels

    F-new-intFunctionality: new, within Rand

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions