Infinite-dimensional Mahalanobis Distance with Applications to Kernelized Novelty Detection (Journal of Machine Learning Research, 2026)