Skip to main content

Variogram

Trait Variogram 

Source
pub trait Variogram: Send + Sync {
    // Required methods
    fn gamma(&self, h: f64) -> f64;
    fn clone_box(&self) -> Box<dyn Variogram>;

    // Provided method
    fn is_bounded(&self) -> bool { ... }
}
Expand description

Isotropic variogram model γ(h): characterises spatial variance as a function of separation distance h ≥ 0.

Required Methods§

Source

fn gamma(&self, h: f64) -> f64

Semi-variance at lag h.

Source

fn clone_box(&self) -> Box<dyn Variogram>

Clone into a boxed trait object.

Provided Methods§

Source

fn is_bounded(&self) -> bool

Whether the variogram is bounded (has a finite sill).

Bounded models (spherical, exponential, Gaussian) approach a finite sill and can use the covariance formulation C = c0 − γ. Unbounded models (power/fractal) require the direct γ-formulation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§