Adaptive Gaussian Kernel Math