Skip to main content

Variogram

Enum Variogram 

Source
pub enum Variogram {
    Spherical {
        sill: f64,
        range: f64,
        nugget: f64,
    },
    Exponential {
        sill: f64,
        range: f64,
        nugget: f64,
    },
    Gaussian {
        sill: f64,
        range: f64,
        nugget: f64,
    },
    Linear {
        slope: f64,
        nugget: f64,
    },
}
Expand description

A variogram model γ(h) describing the spatial correlation of residuals.

All models reduce to the nugget at h = 0, i.e. γ(0) = nugget, which is what makes ordinary Kriging an exact interpolator at sample points.

Variants§

§

Spherical

Spherical: γ(h) = nugget + sill·(1.5·a − 0.5·a³) for h ≤ range, else nugget + sill, where a = h / range.

Fields

§sill: f64

Partial sill (the variance contributed by the structured component).

§range: f64

Distance at which the variogram reaches the sill.

§nugget: f64

Jump at the origin (measurement/short-range noise).

§

Exponential

Exponential: γ(h) = nugget + sill·(1 − exp(−h / range)).

Fields

§sill: f64

Partial sill.

§range: f64

Practical range (≈ 3·range is where the sill is reached).

§nugget: f64

Jump at the origin.

§

Gaussian

Gaussian: γ(h) = nugget + sill·(1 − exp(−(h / range)²)).

Fields

§sill: f64

Partial sill.

§range: f64

Range parameter.

§nugget: f64

Jump at the origin.

§

Linear

Linear model of regionalized variables: γ(h) = nugget + slope·h.

This is a valid (conditionally negative-definite) variogram in 1-D and has the useful property that ordinary Kriging reproduces a linear trend exactly (with nugget = 0).

Fields

§slope: f64

Slope of the variogram (must be non-negative).

§nugget: f64

Jump at the origin.

Implementations§

Source§

impl Variogram

Source

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

Evaluate the variogram at lag h >= 0.

Trait Implementations§

Source§

impl Clone for Variogram

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Variogram

Source§

impl Debug for Variogram

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Variogram

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Variogram

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.