Skip to content

Test different approaches for exponentially distributed random number generation #15

@jmason42

Description

@jmason42

In my experience, the np.random.exponential(a) function is slower than the (presumably) equivalent 1/a * np.log(1/np.random.uniform(0,1)) approach for generating exponentially distributed random numbers. This is a little strange and bears further inspection (e.g. maybe the latter approach has some bad behavior in the extremes). Regardless we should pick the best (fastest while still accurate) approach.

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