momentswithin
Momentswithin is a term used in statistics and related fields to denote the computation of statistical moments of a data distribution restricted to a specified subset or neighborhood of the domain. Conceptually, it generalizes the global moments of a measure to local regions, allowing the description of spatially varying properties of data.
Formally, for a measure μ on a space X and a region R ⊆ X with μ(R) > 0, the
In practice, momentswithin can be estimated from samples by summing over points x_i ∈ R or by kernel-weighted
Applications include computer vision, image and texture analysis, geostatistics, and anomaly detection in sensory data. The