summaryrefslogtreecommitdiff
path: root/utils/sampler.h
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-26 19:20:41 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-26 19:20:41 +0000
commita90dfcca64e1e9efe651e0318a808d38b16c0579 (patch)
tree98859e17017d304a5322d57d9f268918967f52a6 /utils/sampler.h
parentf5dbba7e5e17ccb0b1f00e44e8262d8eed43647a (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.h3
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);