This is documentation for an old release of SciPy (version 0.10.1). Read this page Search for this page in the documentation of the latest stable release (version 1.15.1).
scipy.maxentropy.model.lognormconst
-
model.lognormconst()
Compute the log of the normalization constant (partition
function) Z=sum_{x in samplespace} p_0(x) exp(params . f(x)).
The sample space must be discrete and finite.