FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improve the Marsaglia Gaussian generator · Issue #426 · DiffSharp/DiffSharp · GitHub

Repository navigation

Improve the Marsaglia Gaussian generator #426

Description

The generator for Gaussian random numbers can generate two independent samples, but we are currently discarding one of them. We can improve the code to keep the second sample in memory to return it in the next call to the generator. This should improve efficiency.

static member Normal() =

See https://en.wikipedia.org/wiki/Marsaglia_polar_method

Activity

  1. gbaydin commented on Apr 23, 2022

    MemberAuthor

    Note that this is only used by the reference backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL