Function variogram_unstructured

Source
pub fn variogram_unstructured(
    f: ArrayView2<'_, f64>,
    bin_edges: ArrayView1<'_, f64>,
    pos: ArrayView2<'_, f64>,
    estimator_type: char,
    distance_type: char,
    num_threads: Option<usize>,
) -> (Array1<f64>, Array1<u64>)
Expand description

Variogram estimation on an unstructured grid.

Calculates the empirical variogram according to the equations shown in the module documentation.

§Arguments

  • f - the spatially distributed data
    dim = (no. of data fields, no. of spatial data points per field $i$)
  • bin_edges - the bins of the variogram
    dim = number of bins j
  • pos - the positions of the data f
    dim = (spatial dim. $d$, no. of spatial data points $i$)
  • estimator_type - the estimator function, can be
    • ‘m’ - Matheron, the standard method of moments by Matheron
    • ‘c’ - Cressie, an estimator more robust to outliers
  • distance_type - the distance function, can be
    • ‘e’ - Euclidean, the Euclidean distance
    • ‘h’ - Haversine, the great-circle distance
  • num_threads - the number of parallel threads used, if None, use rayon’s default