Public
Edited
Feb 1, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// experiments are an array of objects with a name and a function to run.
experiments = [
{
name:"booleanIndexMap", run: () => convertBooleanToIndexMap(values,booleanIndex)
},
{
name:"booleanIndexForEach", run: () => convertBooleanToIndex(values,booleanIndex)
}
]
Insert cell
Insert cell
booleanIndex = math.larger(math.random([N]),0.5)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
math = require("mathjs@11")
Insert cell
import {convertBooleanToIndexMap} from "@dvd101x/math-indexing-with-an-array-of-booleans"
Insert cell
import {convertBooleanToIndex} from "@dvd101x/math-indexing-with-an-array-of-booleans"
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