This is documentation for an old release of SciPy (version 0.19.0). Search for this page in the documentation of the latest stable release (version 1.15.1).
Boltzmann (truncated Planck) Distribution¶
p(k;N,λ)=1−e−λ1−e−λNexp(−λk)k∈{0,1,…,N−1}F(x;N,λ)={0x<01−exp[−λ(⌊x⌋+1)]1−exp(−λN)0≤x≤N−11x≥N−1G(q,λ)=⌈−1λlog[1−q(1−e−λN)]−1⌉
Define z=e−λ
μ=z1−z−NzN1−zNμ2=z(1−z)2−N2zN(1−zN)2γ1=z(1+z)(1−zN1−z)3−N3zN(1+zN)[z(1−zN1−z)2−N2zN]3/2γ2=z(1+4z+z2)(1−zN1−z)4−N4zN(1+4zN+z2N)[z(1−zN1−z)2−N2zN]2
M(t)=1−eN(t−λ)1−et−λ1−e−λ1−e−λN
Implementation: scipy.stats.boltzmann