mercurial.core.entropy module
Generalized entropy calculations for patterns (MERCURIAL A.8).
- class mercurial.core.entropy.GeneralizedEntropy(beta_info: float = 1.0, beta_therm: float = 1.0, beta_ph: float = 1.0)[source]
Bases:
objectImplements S_gen from Definition 1.6.
Methods
compute(info_entropy, therm_entropy, ph_disorder)S_gen = β_info * I + β_therm * S_therm + β_ph * S_ph.
from_pattern(pattern)Compute S_gen directly from a Pattern object.
- mercurial.core.entropy.phenomenological_disorder(pattern_coherence: float) float[source]
Phenomenological disorder measure (0 = fully ordered, 1 = fully disordered). pattern_coherence ∈ [0,1] (1 = maximal coherence).