summaryrefslogtreecommitdiff
path: root/gi/pf/base_measures.h
diff options
context:
space:
mode:
authorChris Dyer <prguest11@taipan.cs>2011-12-31 17:54:38 +0000
committerChris Dyer <prguest11@taipan.cs>2011-12-31 17:54:38 +0000
commit134228d946a3f119e88f23a5315fa7849d498ee4 (patch)
tree4289757530d0b30f76164d0fc5d59293101980a5 /gi/pf/base_measures.h
parent71da76d47d5a6f988b56b5641f7296249cb85124 (diff)
last change before adding wood&teh stuff
Diffstat (limited to 'gi/pf/base_measures.h')
-rw-r--r--gi/pf/base_measures.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gi/pf/base_measures.h b/gi/pf/base_measures.h
index fbd1c3ad..a4e9ac28 100644
--- a/gi/pf/base_measures.h
+++ b/gi/pf/base_measures.h
@@ -11,6 +11,7 @@
#include "trule.h"
#include "prob.h"
#include "tdict.h"
+#include "sampler.h"
inline double log_poisson(unsigned x, const double& lambda) {
assert(lambda > 0.0);
@@ -55,6 +56,11 @@ struct CompletelyUniformBase {
prob_t operator()(const TRule&) const {
return kUNIFORM;
}
+ void Summary() const {}
+ void ResampleHyperparameters(MT19937*) {}
+ void Increment(const TRule&) {}
+ void Decrement(const TRule&) {}
+ prob_t Likelihood() const { return prob_t::One(); }
const prob_t kUNIFORM;
};
@@ -79,6 +85,11 @@ struct PhraseConditionalUninformativeBase {
prob_t p0(const std::vector<WordID>& vsrc, const std::vector<WordID>& vtrg, int start_src, int start_trg) const;
+ void Summary() const {}
+ void ResampleHyperparameters(MT19937*) {}
+ void Increment(const TRule&) {}
+ void Decrement(const TRule&) {}
+ prob_t Likelihood() const { return prob_t::One(); }
const prob_t kUNIFORM_TARGET;
};