Revision eae1904af2d80d198ecfb1b68a8b24251fd8fca0 authored by Andreas Stuhlmüller on 02 July 2017, 19:45:35 UTC, committed by GitHub on 02 July 2017, 19:45:35 UTC
2 parent s 9b74180 + 4a97da1
Raw File
geometric.wppl
var geometric = function(p) {
  return flip(p) ? 1 + geometric(p) : 1;
};

Infer({method: 'enumerate', maxExecutions: 10, model() {
  return geometric(0.5);
}});
back to top