Public
Edited
Jul 24, 2020
1 star
Insert cell
Insert cell
pachinko(randomWeibull(-k0), [0, 5])
Insert cell
pachinko(randomWeibull(0))
Insert cell
pachinko(randomWeibull(k0), [0, 5])
Insert cell
Insert cell
function randomWeibull(k) {
var outerFunc;
if ((k = +k) === 0) {
outerFunc = x => -Math.log(x);
} else {
k = 1 / k;
outerFunc = x => Math.pow(x, k);
}
return function() {
return outerFunc(-Math.log1p(-Math.random()));
};
}
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more