summaryrefslogtreecommitdiff
path: root/gi/pyp-topics/src/pyp.hh
diff options
context:
space:
mode:
authorphilblunsom@gmail.com <philblunsom@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-15 16:05:34 +0000
committerphilblunsom@gmail.com <philblunsom@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-15 16:05:34 +0000
commitc43ff04b15243a542825104e7d565ac0e7c9ebbd (patch)
tree8ae72ac9bd5227a76e0391a51538bbd56d3f99d5 /gi/pyp-topics/src/pyp.hh
parentd038a7e40a86f949a3d4c51de785505fe1e9286a (diff)
Fixed rather large bug in the table handling for the hierarchical models.
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@265 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/pyp-topics/src/pyp.hh')
-rw-r--r--gi/pyp-topics/src/pyp.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/gi/pyp-topics/src/pyp.hh b/gi/pyp-topics/src/pyp.hh
index a508e517..26f6ab2e 100644
--- a/gi/pyp-topics/src/pyp.hh
+++ b/gi/pyp-topics/src/pyp.hh
@@ -34,14 +34,14 @@ public:
PYP(double a, double b, unsigned long seed = 0, Hash hash=Hash());
- int increment(Dish d, double p0);
- int decrement(Dish d);
+ virtual int increment(Dish d, double p0);
+ virtual int decrement(Dish d);
// lookup functions
int count(Dish d) const;
double prob(Dish dish, double p0) const;
double prob(Dish dish, double dcd, double dca,
- double dtd, double dta, double p0) const;
+ double dtd, double dta, double p0) const;
double unnormalised_prob(Dish dish, double p0) const;
int num_customers() const { return _total_customers; }