Compact Vectorization optimizes latency of the existing function 'DIEM_Stat' by around 46.50% Compact Optimized getDIEM optimizes latency of the existing function 'getDIEM' by 34.27%
The DIEM metric was proposed in the following research work:
Federico Tessari, Kunpeng Yao, Neville Hogan. "Surpassing Cosine Similarity for Multidimensional Comparisons: Dimension Insensitive Euclidean Metric." arXiv preprint arXiv:2407.08623, 2025. [View on arXiv]