"This soft constraint is interpreted as saying that all else being equal, goodMood being true is half as likely as goodMood being false, because 0.5 is half of 1.0. The precise mathematics of this is discussed in chapter 4, but the short version is that the probabilty of a value of an element is multiplied by the constraint results for that value."
I can't find the analog in Webppl. I tried to use factor(goodMood ? 0.5 : 1) but that doesn't seem to result in the same numeric outcome in my ported examples.
Here are futher examples of usage:
--
You received this message because you are subscribed to the Google Groups "webppl-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webppl-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/webppl-dev/35e0635b-981b-4186-9eb2-48af72b24265n%40googlegroups.com.