This is an old revision of the document!
Neighborhood Table Type
A Neighborhood Table defines a weight between pairs of locations. Like Change Matrix Type, Percent Matrix Type, and the other matrix-shaped types, it's really a Table with one fixed, expected column layout: Neighbor1* (Real), Neighbor2* (Real), Weight (Real). Each row gives the weight linking one neighbor to another.
Calc Neighborhood computes a Neighborhood Table directly from a Categorical Map, identifying each non-null feature's neighbors within a search window and weighting them by adjacency, without needing the table built by hand.
GUI Editor
Neighborhood Table Type has no dedicated editor of its own — its carrier functor's input cannot be represented by a constant. A value is obtained either directly, from a functor such as Calc Neighborhood, or from any Table shaped with the columns above (or an Elevation Graph) through the automatic conversion below.
EGO Script
For the same reason, Neighborhood Table Type has no literal constant syntax in EGO Script — see Constants. A Neighborhood Table is obtained either by calling a functor that produces one directly, such as Calc Neighborhood, or through an automatic conversion from a Table shaped with the Neighbor1*, Neighbor2*, Weight columns, or from an Elevation Graph.
Automatic Conversions
- Converted from: Table Type and Elevation Graph Type.
- Converted to: Table Type.
See Type System for the shared table-format pattern this type follows, and for the complete conversion reference across all types.