Class SpatialInteraction
java.lang.Object
org.episteme.social.geography.SpatialInteraction
Utility for modeling spatial interaction, migration flows, and urban gravitation.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptioncalculateBreakingPoint(Quantity<Length> distance, double p1, double p2) Reilly's Law of Retail Gravitation: breaking point between two market areas.static RealcalculateGravityIntensity(double p1, double p2, Quantity<Length> distance, double beta) Gravity Model for interactions between two locations.
-
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 locationp2- population of end locationdistance- distance between thembeta- 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 centroidsp1- population of center 1p2- population of center 2- Returns:
- breaking point distance from center 1
-