Chapter 9: Spatial Relationships and Weights¶
Part II — Geographic Data Science
Learning Objectives¶
By the end of this chapter you will be able to:
- Compute distance metrics and contiguity-based weights
- Use libpysal to build spatial neighborhood structures
- Prepare neighborhoods for simulation models
{note}
Directly motivates CellularAutomaton.create_neighborhood() in Part III.
In [ ]:
Copied!
# Standard imports — add chapter-specific imports below
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Standard imports — add chapter-specific imports below
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
Distance and Proximity¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Distance and Proximity
# Code for section: Distance and Proximity
Contiguity Weights: Queen and Rook¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Contiguity Weights: Queen and Rook
# Code for section: Contiguity Weights: Queen and Rook
libpysal Weights Objects¶
TODO: write content.
In [ ]:
Copied!
# Code for section: libpysal Weights Objects
# Code for section: libpysal Weights Objects
Caching Neighborhoods for Performance¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Caching Neighborhoods for Performance
# Code for section: Caching Neighborhoods for Performance
From Weights to Simulation Neighbors¶
TODO: write content.
In [ ]:
Copied!
# Code for section: From Weights to Simulation Neighbors
# Code for section: From Weights to Simulation Neighbors
Exercises¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Exercises
# Code for section: Exercises
Further Reading¶
- TODO: add references.