summaryrefslogtreecommitdiff
path: root/utils/sampler.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-05-27 15:34:44 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2012-05-27 15:34:44 -0400
commitbfa5c4866101161c5fb20220d335c80ed075ae0a (patch)
treee6ce21957a114d8eebcffcfe538f5af273fd9bcd /utils/sampler.h
parent425a6300f2ec00a44d3f23cb43c239bec58cf765 (diff)
clean up
Diffstat (limited to 'utils/sampler.h')
-rw-r--r--utils/sampler.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/sampler.h b/utils/sampler.h
index 22c873d4..b237c716 100644
--- a/utils/sampler.h
+++ b/utils/sampler.h
@@ -49,9 +49,10 @@ struct RandomNumberGenerator {
size_t SelectSample(const F& a, const F& b, double T = 1.0) {
if (T == 1.0) {
if (F(this->next()) > (a / (a + b))) return 1; else return 0;
- } else {
- assert(!"not implemented");
}
+ std::cerr << "SelectSample with annealing not implemented\n";
+ abort();
+ return 0;
}
// T is the annealing temperature, if desired