probmods / webppl-viz

Visualization for WebPPL
http://probmods.github.io/webppl-viz/
Other
14 stars 9 forks source link

Smart number formatting fails on the ccr example #42

Open longouyang opened 8 years ago

longouyang commented 8 years ago
viz.auto(MH(function() {
  var brand = flip(0.7) ? 'coke' : 'pepsi'
  var x = uniform(3,6);
  var y = uniform(0,1);
  factor(Math.log(Math.abs(x-y)))
  return {brand: brand, x: x, y: y};
},5000))