pub enum VariogramModel {
Spherical {
range: f64,
sill: f64,
nugget: f64,
},
Exponential {
range: f64,
sill: f64,
nugget: f64,
},
Gaussian {
range: f64,
sill: f64,
nugget: f64,
},
Linear {
slope: f64,
nugget: f64,
},
Power {
coefficient: f64,
exponent: f64,
nugget: f64,
},
Matern {
range: f64,
sill: f64,
nugget: f64,
nu: f64,
},
}Expand description
Variogram model types for Kriging
Variants§
Spherical
Spherical variogram: γ(h) = c₀ + c₁[1.5(h/a) - 0.5(h/a)³] for h ≤ a, γ(h) = c₀ + c₁ for h > a
Exponential
Exponential variogram: γ(h) = c₀ + c₁[1 - exp(-h/a)]
Gaussian
Gaussian variogram: γ(h) = c₀ + c₁[1 - exp(-(h/a)²)]
Linear
Linear variogram: γ(h) = c₀ + c₁h (unbounded)
Power
Power variogram: γ(h) = c₀ + c₁h^α for 0 < α < 2
Matern
Matérn variogram with parameter ν
Implementations§
Source§impl VariogramModel
impl VariogramModel
Sourcepub fn spherical(range: f64, sill: f64, nugget: f64) -> Self
pub fn spherical(range: f64, sill: f64, nugget: f64) -> Self
Create a spherical variogram model
§Arguments
range- Range parameter (distance where correlation becomes negligible)sill- Sill parameter (maximum variance)nugget- Nugget parameter (variance at zero distance)
Sourcepub fn exponential(range: f64, sill: f64, nugget: f64) -> Self
pub fn exponential(range: f64, sill: f64, nugget: f64) -> Self
Create an exponential variogram model
Sourcepub fn power(coefficient: f64, exponent: f64, nugget: f64) -> Self
pub fn power(coefficient: f64, exponent: f64, nugget: f64) -> Self
Create a power variogram model
Sourcepub fn matern(range: f64, sill: f64, nugget: f64, nu: f64) -> Self
pub fn matern(range: f64, sill: f64, nugget: f64, nu: f64) -> Self
Create a Matérn variogram model
Sourcepub fn effective_range(&self) -> f64
pub fn effective_range(&self) -> f64
Get the effective range of the variogram
Trait Implementations§
Source§impl Clone for VariogramModel
impl Clone for VariogramModel
Source§fn clone(&self) -> VariogramModel
fn clone(&self) -> VariogramModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VariogramModel
impl RefUnwindSafe for VariogramModel
impl Send for VariogramModel
impl Sync for VariogramModel
impl Unpin for VariogramModel
impl UnwindSafe for VariogramModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.