kernel.bandwidth: Kernel bandwidth estimation by median heuristic method with bootstrap CI
Description
Computes the Gaussian-kernel (Radial Basis Function) bandwidth \(\sigma\)
using the median-heuristic (inverse of the median of squared Euclidean distances),
and returns a bootstrap confidence interval. This assumes the kernel is
parameterized as \(k(x_i, x_j) = \exp(-\sigma ||x_i - x_j||^2)\).