From 8b1ada6ce9050532cca416ecb3736203ec234d59 Mon Sep 17 00:00:00 2001 From: redpony Date: Thu, 26 Aug 2010 19:20:41 +0000 Subject: fixes git-svn-id: https://ws10smt.googlecode.com/svn/trunk@623 ec762483-ff6d-05da-a07a-a48fb63a330f --- utils/sampler.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils') 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(mean, var)(m_random); -- cgit v1.2.3