Published
Edited
Dec 22, 2019
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
user_pred
Insert cell
user_cdf = guesstimatorInputToCdf({
guesstimatorInput: user_pred,
simulationSampleCount: 10000,
outputSampleCount: 1000,
smoothingWidth: 30
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
a = ({ xs: [1, 2, 3, 5, 6, 7, 8, 8, 10],
ys: [1, 1, 4, 5, 8, 12, 5, 4, 2] })
Insert cell
Insert cell
lodash = require("lodash")
Insert cell
samplesFromHistogram = lodash.zip(a.xs, a.ys).flatMap(x => new Array(x[1]).fill(x[0]))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
mutate_query = `mutation {
measurableCreate(input: {
name: "test"
valueType:FLOAT
channelId: "e351f8f3-cf9c-4787-a787-68257220084d"
}) {
id
}
}`
Insert cell
JSON.stringify(mutate_query)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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