Class "Zoning"
The main class to perform zoning
A complete use-case example is described in the vignette "Zoning with GeoFIS" class
\insertRef Pedroso10GeoFIS
\insertRef Infsci13GeoFIS
\insertRef fuzzieee13GeoFIS
NewZoning
border
: sp::SpatialPolygons object, The border used to limit the processed area, or NULL
if the Convex Hull of data source is used
Only data points within the border polygon are processed
The default value is `NULL`
neighborhood
: numeric value, The minimum edge length shared by two Voronoi polygons for being considered as neighbors
or `NULL` if all contiguous Voronoi polygons are considered as neighbors
The default value is `NULL`
attribute_distance
: list of Distance object (write-only), The functions used to compute the distance between two data points in the attribute space
The length of the list must be equal to the number of zonable attributes, the distance objects are treated in the order of zonable attributes
In case of a single attribute into the zonable dataset, the list is optional and a single Distance object can be provided
Allowed distance objects: EuclideanDistance , FuzzyDistance or `NULL` if the attribute should not be used in the zoning process
The default value is a list of EuclideanDistance
See [Zoning documentation main parameters](https://www.geofis.org/en/documentation-en/zoning/#main-parameters) univariate distance
combine_distance
: Distance object (write-only), The function used to combine attribute distances in case of multivariate zoning
Allowed distance objects: EuclideanDistance or MinkowskiDistance
The default value is EuclideanDistance
See [Zoning documentation main parameters](https://www.geofis.org/en/documentation-en/zoning/#main-parameters) multivariate combination
zone_distance
: Distance object (write-only), The function used to compute the distance between 2 zones
Allowed distance objects: MaximumDistance , MinimumDistance or MeanDistance
The default value is MaximumDistance
The pair of zones to be merged are those for which the `zone_distance` is minimum.
See [Zoning documentation main parameters](https://www.geofis.org/en/documentation-en/zoning/#main-parameters) between zone distance
smallest_zone
: Smallest zone object (write-only), This criterion is used to determine the smallest size for a zone (number of points or area) to be kept in the final map
Allowed Smallest zone objects: ZoneSize or ZoneArea
The default value is ZoneSize with 1 point
new()
Constructor, create a new instance of Zoning
Zoning$new(source, warn = TRUE)
source
: sp::SpatialPointsDataFrame or sp::SpatialMultiPointsDataFrame object, The data source
warn
: logical value, Show warnings if TRUE, default value is TRUE
zonable_data()
Get the zonable data
Keep only the attributes that can be used in the zoning process, meaning numeric atributes, without missing values and with a range that is not limited to a unique value
The last condition is required by the min-max standardization process
Zoning$zonable_data()
sp::SpatialPointsDataFrame object
perform_voronoi()
Compute the Voronoi diagram
Zoning$perform_voronoi()
voronoi_map()
Get the Voronoi map
Zoning$voronoi_map()
sp::SpatialPolygons object
perform_neighborhood()
Identify adjacent polygons in the voronoi tesselation
Zoning$perform_neighborhood()
neighborhood_map()
Get the neighborhood map
Zoning$neighborhood_map()
sp::SpatialLinesDataFrame object
perform_zoning()
Perform the zoning
Zoning$perform_zoning()
map_size()
Get the number of maps with different number of zones available after perform zoning
Zoning$map_size()
integer value
map()
Get the map corresponding to a number of zones
Zoning$map(number_of_zones)
number_of_zones
: integer value, The number of zones in the map
sp::SpatialPolygonsDataFrame object
maps()
Get the maps corresponding to a number of zones
Zoning$maps(number_of_zones)
number_of_zones
: integer vector, The number of zones in each map
list of sp::SpatialPolygonsDataFrame object