Public
Edited
Jun 9, 2023
Insert cell
Insert cell
Insert cell
Insert cell
viewof f1 = slider({
min: 10,
max: 1000,
step: 1,
value: 100,
format: "00.0",
description: html`Frequency 1`
})
Insert cell
f2 = 10
Insert cell
Insert cell
Insert cell
[0, 1, 2, 3].slice(0, 1)
Insert cell
100 ? 0: 100
Insert cell
Insert cell
Insert cell
-p*Math.log2(p)
Insert cell
width = 300
Insert cell
padding = 20
Insert cell
grid_size = 10
Insert cell
data = new Array(grid_size * grid_size)
Insert cell
prettyFloatingNumber = p => p.toLocaleString(undefined, {minimumFractionDigits: 4})
Insert cell
entropy = (p) => - (p*Math.log2(p) + (1-p)*Math.log2(1-p))
Insert cell
import {checkbox} from "@jashkenas/inputs"

Insert cell
Math.random()
Insert cell
height = 300
Insert cell
d3 = require("d3@6")
Insert cell
radius = 5
Insert cell
import {slider} from "@jashkenas/inputs"

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