gaussianKernel
The standard normal (gaussian) kernel: e^(-u²/2) / √(2π).
Basic example
Section titled “Basic example”The standard normal density, kernelDensity’s default kernel. It takes the distance from an observation in bandwidths, peaks at about 0.3989, and never quite reaches zero.
import {gaussianKernel} from "@d3plus/math";
gaussianKernel(0);
gaussianKernel(0.5);
gaussianKernel(1);
gaussianKernel(2);
gaussianKernel(3);
Parameters
import {gaussianKernel} from "@d3plus/math";
urequirednumberThe scaled distance from an observation.