统计工具 (statistics)

二项式 Wilson 评分区间——离子态判别置信区间。

概述

statistics 提供基于 Wilson 评分区间的二项式比例置信区间工具,用于离子态判别的统计误差估计。

函数说明
wilson_score(p, n)计算比例 p 的 Wilson 评分
wilson_err(p, n)Wilson 置信区间半宽
getrandbincont(p, n, N)从二项式结果采样 N 次实验概率

Wigner 符号 (utils)

utils 模块提供 Wigner3jWigner6j 符号的完整 Racah 公式实现,用于角动量耦合计算。