viewof n_obs = {
const input = Inputs.range([20, 1000], {value: 200, step: 20, label: "Sample size n:"});
['pointerdown','touchstart','mousedown','click','wheel','pointermove','touchmove']
.forEach(e => input.addEventListener(e, ev => ev.stopPropagation()));
return input;
}
viewof n_bins = {
const input = Inputs.range([3, 40], {value: 12, step: 1, label: "Number of classes k:"});
['pointerdown','touchstart','mousedown','click','wheel','pointermove','touchmove']
.forEach(e => input.addEventListener(e, ev => ev.stopPropagation()));
return input;
}
viewof shape = {
const input = Inputs.select(["mound-shaped", "skewed right", "heavy-tailed"],
{value: "mound-shaped", label: "Population shape:"});
['pointerdown','touchstart','mousedown','click','wheel','pointermove','touchmove']
.forEach(e => input.addEventListener(e, ev => ev.stopPropagation()));
return input;
}