Multimodal density estimation is a fundamental problem in scientific computing. Determining the number of modes in a distribution is a core numerical challenge with applications across ecology, economics, genomics, and astronomy. While the R ecosystem provides mature tools through the multimode package, the Python ecosystem has lacked an equivalent cohesive implementation. We present critband, a Python package for critical bandwidth bimodality detection based on Silverman's kernel density approach. The package implements critical bandwidth search with a robust bracketed mode-count solver and FFT-accelerated KDE, and provides additional features including k-mode detection, component decomposition, bimodality strength quantification, and excess mass estimation. Validation against twelve benchmark cases spanning separation regimes, unequal variances, unequal weights, and small sample sizes shows stable estimates for clearly separated cases and expected instability for boundary cases. Performance benchmarks show critband is typically 3-10 times faster per case than R's modetest() in the tested setup.
Lamarr Institute, TU Dortmund University(拉马尔研究所,多特蒙德工业大学);Lamarr Institute, University of Bonn(拉马尔研究所,波恩大学);Lamarr Institute, Fraunhofer IAIS(拉马尔研究所,弗劳恩霍夫应用研究促进协会IAIS)
COFFEE -- An MPI-parallelized Python package for the numerical evolution of differential equations
COFFEE(Conformal Field Equation Evolver)是一个Python软件包,主要开发用于使用线方法随时间数值地演化偏微分方程系统。它包括各种时间积分器和有限差分stenosis与求和的部分财产,以及伪谱功能的角度导数的自旋加权函数。一些额外的功能包括在各种不同的几何图形上进行MPI并行化,HDF数据输出和后处理脚本以可视化数据,以及允许用户在每个时间步后创建代码进行分析的操作类。