Documentation#
MuSpAn is organised into several modules, each of which provides tools for working with different aspects of spatial data and analysis. The organisation of the package is designed to group tools and spatial analysis methods that are closely related in terms of their functionality and mathematical underpinnings.
Subpackage |
Description |
|---|---|
A container for spatial data |
|
Objects that can be used to represent spatial data |
|
Querying domain objects |
|
Manipulating shape objects |
|
Spatial statistics |
|
Region-based analysis of spatial data |
|
Network analysis for spatial data |
|
Geometric descriptors of shape-like objects |
|
Topological data analysis |
|
Distribution analysis of spatial data |
|
Non-spatial summary statistics |
|
Visualisation |
|
Data input and output helper operations |
|
Datasets for testing and demonstration |
|
Helper functions for spatial analysis and data manipulation |
Import functions from MuSpAn#
All of the functions and classes in the MuSpAn package are publically available and can be imported using the following import statement:
import muspan
Or alternatively, you can import specific functions or classes from the package. For example, if we only wanted use a specific function, say network_distance from the networks module, we could import it as follows:
from muspan.networks import network_distance
distance = network_distance(...)
MuSpAn reference list#
All of the modules are listed below, and each module has its own documentation page that provides a detailed description of the functions and classes that are available in that module.
- muspan.domain
domaindomain.add_labelsdomain.add_linesdomain.add_objects_to_collectiondomain.add_pointsdomain.add_shapesdomain.add_shapes_with_internal_holesdomain.convert_objectsdomain.delete_distancesdomain.delete_labelsdomain.delete_networkdomain.delete_objectsdomain.estimate_boundarydomain.simplify_shape_boundariesdomain.update_colors
- muspan.objects
- muspan.visualise
- muspan.shape_operations
- muspan.networks
- generate_network
- add_similarity_weight_to_edges
- add_dissimilarity_weight_to_edges
- cluster_neighbourhoods
- khop_neighbourhood
- knn_label_count
- adjacency_permutation_test
- alpha_index
- betweenness_centrality
- closeness_centrality
- compactness
- cyclomatic_number
- edge_orientation_distribution
- gamma_index
- katz_centrality
- laplacian_centrality
- node_degree
- community_detection
- network_distance
- muspan.query
- query
- query_container
- interpret_query
- is_query_like
- validate_query
- is_A_contained_by_B
- filter_objects_to_included_regions
- get_centroids
- get_children
- get_collections
- get_family_tree
- get_labels
- get_minimum_distances_boundaries
- get_minimum_distances_centroids
- get_object_components
- get_object_types
- get_parents
- return_object_IDs_from_query_like
- muspan.geometry
- muspan.spatial_statistics
- muspan.summary_statistics
- muspan.topology
- muspan.distribution
- muspan.region_based
- muspan.io
- muspan.datasets
- muspan.helpers