scirs2_spatial/spatial_stats/mod.rs
1//! Spatial statistics module for analyzing spatial patterns and relationships
2//!
3//! This module provides statistical measures commonly used in spatial analysis,
4//! including measures of spatial autocorrelation, clustering, pattern analysis,
5//! kernel density estimation, and cluster detection.
6//!
7//! # Submodules
8//!
9//! - `core` - Basic spatial autocorrelation (Moran's I, Geary's C), weights matrices,
10//! Clark-Evans index, Ripley's K/L, average nearest neighbor
11//! - `global_autocorrelation` - Enhanced global spatial autocorrelation with significance tests
12//! - `lisa` - Local Indicators of Spatial Association with permutation tests and cluster maps
13//! - `spatial_kde` - 2D Kernel Density Estimation on spatial data
14//! - `scan_statistic` - Kulldorff's spatial scan statistic for cluster detection
15
16pub mod core;
17pub mod global_autocorrelation;
18pub mod lisa;
19pub mod scan_statistic;
20pub mod spatial_kde;
21
22// Re-export everything from core (backward compatibility)
23pub use self::core::*;
24
25// Re-export from global_autocorrelation
26pub use global_autocorrelation::{
27 distance_band_weights, geary_test, inverse_distance_weights, moran_test,
28 row_standardize_weights, GlobalAutocorrelationResult, SpatialWeights,
29};
30
31// Re-export from lisa
32pub use lisa::{
33 getis_ord_gi_star, lisa_cluster_map, local_moran_permutation_test, GetisOrdResult, LisaCluster,
34 LisaClusterMap, LisaResult,
35};
36
37// Re-export from spatial_kde
38pub use spatial_kde::{
39 kde_at_point, kde_on_grid, select_bandwidth, BandwidthMethod, KdeGrid, KernelType,
40 SpatialKdeConfig,
41};
42
43// Re-export from scan_statistic
44pub use scan_statistic::{kulldorff_scan, ScanCluster, ScanModel, ScanResult, ScanStatisticConfig};