summaryrefslogtreecommitdiff
path: root/utils/sampler.h
diff options
context:
space:
mode:
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);