Published
Edited
Mar 8, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
functions = ({
exponential: (x,amt) => (Math.sign(x) * Math.pow(Math.abs(x), 1 / Math.pow(amt + 1.01, 4))),
sigmoid: (x,amt) => (1 / (1 + Math.pow(Math.e, -1 * x * amt))),
sine: (x,amt) => (Math.sin(x * amt)),
log: (x,amt) => (Math.sign(x) * Math.log(Math.abs(x * amt) + 1)),
tanh: (x,amt) => (Math.tanh(x * amt)),
parametric: (x, amt) => {
amt = amt * -0.99
return (x - x * amt) /
(amt - Math.abs(x) * 2.0 * amt + 1.0)
}
})
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