Class SpatialInteraction

java.lang.Object
org.episteme.social.geography.SpatialInteraction

public final class SpatialInteraction extends Object
Utility for modeling spatial interaction, migration flows, and urban gravitation.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • calculateGravityIntensity

      public static Real calculateGravityIntensity(double p1, double p2, Quantity<Length> distance, double beta)
      Gravity Model for interactions between two locations. I = (P1 * P2) / dist^beta
      Parameters:
      p1 - population of start location
      p2 - population of end location
      distance - distance between them
      beta - friction coefficient (distance decay)
      Returns:
      interaction intensity
    • calculateBreakingPoint

      public static Quantity<Length> calculateBreakingPoint(Quantity<Length> distance, double p1, double p2)
      Reilly's Law of Retail Gravitation: breaking point between two market areas.
      Parameters:
      distance - distance between centroids
      p1 - population of center 1
      p2 - population of center 2
      Returns:
      breaking point distance from center 1