Published
Edited
Dec 1, 2020
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
k22 = (sigma, ell) => {
const sigmasq = Math.pow(sigma, 2);
const ellsq = Math.pow(ell, 2);
const ell4 = Math.pow(ell, 4);
const ell8 = Math.pow(ell, 8);
return (x1, x2) => sigmasq / ell8 * (3 * ell4 - 6 * ellsq * Math.pow(x1 - x2, 2) + Math.pow(x1 - x2, 4)) * Math.exp(-Math.pow(x1 - x2, 2) / (2 * ellsq))
}
Insert cell
k02 = (sigma, ell) => {
const sigmasq = Math.pow(sigma, 2);
const ellsq = Math.pow(ell, 2);
const ell4 = Math.pow(ell, 4);
return (x1, x2) => -sigmasq / ell4 * (ellsq - Math.pow(x1 - x2, 2)) * Math.exp(-Math.pow(x1 - x2, 2) / (2 * ellsq))
}
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

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