Boost1.5のガンマ分布を使用しようとしています。ここで、 kとthetaの値をそれぞれ4と.5にします。しかし、 theta <1の値を設定すると、コンパイルエラーが発生します。
/usr/local/include/boost/random/gamma_distribution.hpp:118: boost::random::gamma_distribution<RealType>::gamma_distribution(const RealType&, const RealType&) [with RealType = double]: Assertion `_beta > result_type(0)' failed.
同じことを回避する方法はありますか?