babylon.formulas.contradiction
Contradiction intensity formulas for the Babylon simulation.
These formulas calculate the intensity of contradictions by combining node-level scalar divergence (e.g. wealth, ideology) with structural network properties (e.g. node centrality).
Functions
|
Calculate the emergent intensity of a contradiction edge. |
- babylon.formulas.contradiction.calculate_contradiction_intensity(divergence, centrality_a, centrality_b, sensitivity=1.0)[source]
Calculate the emergent intensity of a contradiction edge.
Combines raw dialectical divergence (e.g. wealth gap, ideological distance) with the topological importance of the entities involved, scaling the divergence magnitude by their hypergraph centrality or degree.
- Formula:
intensity = divergence * (1 + sqrt(Centrality_a * Centrality_b)) * sensitivity Bound to [0.0, 1.0]
- Parameters:
divergence (
float) – Raw difference between node states (typically [0, 1]).centrality_a (
float) – Network/Hypergraph centrality of node A (typically [0, 1]).centrality_b (
float) – Network/Hypergraph centrality of node B (typically [0, 1]).sensitivity (
float) – System or definition-level scaling factor.
- Return type:
- Returns:
Intensity scalar bounded [0.0, 1.0].
Example
>>> calculate_contradiction_intensity(0.5, 0.8, 0.2, 1.0) 0.7...