gcant / dirichlet-cpp

C++ class for Dirichlet distributed random variables

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dirichlet distributed random number generator for C++

Class for Dirichlet distributed random vectors, using the standard library.

The class dirichlet_distribution is initialized with a parameter vector, α -- see test.cpp. Should be straightforward to compile, for example

g++ -std=c++11 test.cpp

About

C++ class for Dirichlet distributed random variables

License:MIT License


Languages

Language:C++ 100.0%