Revision d5c974ac9ce897791737b6f4e0cee5de2254e6f6 authored by Andreas Stuhlmueller on 31 January 2017, 02:56:40 UTC, committed by Andreas Stuhlmueller on 31 January 2017, 02:56:40 UTC
1 parent 22b8f88
Raw File
geometric.wppl
var geometric = function(p) {
  return flip(p) ? 1 + geometric(p) : 1;
};

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