Creates an empty Layer
Description
Use this function to create an empty layer. This allows the user to create his own maps.
| Return type: | Layer (new empty Layer) |
|---|
Examples
import clusterpy
lay = clusterpy.new()
Creates a new Layer with uniformly distributed points in space
| Parameters: |
|
|---|---|
| Return type: | Layer (new points layer) |
Description
The example below shows how to create a point-based regular grids with clusterPy.
Examples
Creating a grid of ten by ten points.:
import clusterpy
points = clusterpy.createPoints(10, 10)
Creating a grid of ten by ten points on the bounding box (0,0,100,100).
import clusterpy
points = clusterpy.createPoints(10, 10, lowerLeft=(0, 0), upperRight=(100, 100))
Creates a new Layer with a regular lattice
| Parameters: |
|
|---|---|
| Return type: | Layer new lattice |
Description
Regular lattices are widely used in both theoretical and empirical applications in Regional Science. The example below shows how easy the creation of this kind of maps is using clusterPy.
Examples
Create a grid of ten by ten points.:
import clusterpy
points = clusterpy.createGrid(10,10)
Create a grid of ten by ten points on the bounding box (0,0,100,100).:
import clusterpy
points = clusterpy.createGrid(10, 10, lowerLeft=(0, 0), upperRight=(100, 100))