Gaussian Function

const gaussian = (x, d) => {
 return 1 / (Math.sqrt(2 * Math.PI) * d) * Math.exp(-1 * Math.pow(x, 2) / (2 * Math.pow(d, 2)));
}

d =