Open longouyang opened 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))