Skip to content

ガンマ乱数生成ルーチン(Marsaglia & Tsang 2000) #4

Description

@zenitani

Marsaglia & Tsang (2000) のガンマ乱数 (a>1) 生成ルーチンを収録してはどうでしょうか。乱数マニュアル p.14 の Table II を参照。一様乱数・正規乱数・ガンマ乱数の3つがあれば、かなりの数の分布関数を乱数生成できるようになります。

一応、Fortran Standard Library にも実装があります。でもこれぐらいなら自前で持っておいたほうが良いと思います。

Activity

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

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