diff options
author | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-26 19:20:41 +0000 |
---|---|---|
committer | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-26 19:20:41 +0000 |
commit | 8b1ada6ce9050532cca416ecb3736203ec234d59 (patch) | |
tree | ff29f0e3b9f3eaa5aad2b49542961dd69768428f /utils/sampler.h | |
parent | cdfdbd8d9604d0bac5fe40197d1776f42f75ab70 (diff) |
fixes
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@623 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'utils/sampler.h')
-rw-r--r-- | utils/sampler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/sampler.h b/utils/sampler.h index f75d96b6..a14f6e2f 100644 --- a/utils/sampler.h +++ b/utils/sampler.h @@ -61,6 +61,9 @@ struct RandomNumberGenerator { // draw a value from U(0,1) double next() {return m_random();} + // draw a value from U(0,1) + double operator()() { return m_random(); } + // draw a value from N(mean,var) double NextNormal(double mean, double var) { return boost::normal_distribution<double>(mean, var)(m_random); |