计算机科学 > 信息论
[提交于 2026年10月20日 (v1),最后修订于 2026年11月23日 (此版本, v2)]
标题:infomeasure-rs: A High-Performance Rust Library for Information-Theoretic Measures and Estimators
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Information theory has become a standard tool across the natural and social sciences, yet practical use is limited by estimator choice, fragmented software, reproducibility, and computational cost. We present infomeasure-rs, an open-source Rust library that brings a broad set of information-theoretic measures and estimators into one self-contained, type-safe package. It covers entropy, mutual information, conditional mutual information, transfer entropy, conditional transfer entropy, cross-entropy, and the Kullback-Leibler and Jensen-Shannon divergences, with discrete (plug-in and bias-corrected), kernel, ordinal, and nearest-neighbour estimators, including the R\'enyi and Tsallis families, and exposes local and global values and significance testing through a consistent trait interface. It ships as a single portable binary with no runtime dependency and is continuously validated against a reference implementation. On a single central processing unit (CPU) core, and even without its GPU or parallel paths, it is the fastest of the packages we compared across languages, matching the closest packages only for plug-in discrete entropy and substantially faster for mutual information, the conditional and transfer measures, and the kernel, ordinal, and generalised-entropy estimators. The optional GPU and multi-threaded paths accelerate selected continuous estimators further. The library is open source and, to our knowledge, the most complete information-theory package for Rust.
提交历史
来自:Carlson Moses Büth[v1] 2026年10月20日 星期二 09:57:29 UTC (151 KB)
[v2] 2026年11月23日 星期一 22:17:32 UTC (135 KB)