pub enum VariogramModel {
Spherical {
nugget: Real,
sill: Real,
range: Real,
},
Exponential {
nugget: Real,
sill: Real,
range: Real,
},
Gaussian {
nugget: Real,
sill: Real,
range: Real,
},
Cubic {
nugget: Real,
sill: Real,
range: Real,
},
Stable {
nugget: Real,
sill: Real,
range: Real,
alpha: Real,
},
Matern {
nugget: Real,
sill: Real,
range: Real,
nu: Real,
},
}Expand description
Parametric variogram (nugget, sill, range, and optional shape).
Build with VariogramModel::new from a VariogramType; use with
OrdinaryKrigingModel::new or
BinomialKrigingModel::new.
Variants§
Implementations§
Source§impl VariogramModel
impl VariogramModel
Sourcepub fn new(
nugget: Real,
sill: Real,
range: Real,
model_type: VariogramType,
) -> Result<Self, KrigingError>
pub fn new( nugget: Real, sill: Real, range: Real, model_type: VariogramType, ) -> Result<Self, KrigingError>
Constructs a variogram model with validated parameters: nugget >= 0, sill > nugget, range > 0, all finite.
Sourcepub fn new_with_shape(
nugget: Real,
sill: Real,
range: Real,
model_type: VariogramType,
shape: Real,
) -> Result<Self, KrigingError>
pub fn new_with_shape( nugget: Real, sill: Real, range: Real, model_type: VariogramType, shape: Real, ) -> Result<Self, KrigingError>
Constructs a variogram model with an explicit shape parameter for Stable (alpha) or Matérn (nu).
For other model types, shape is ignored. Stable: alpha in (0, 2]. Matérn: nu > 0.
pub fn variogram_type(&self) -> VariogramType
pub fn params(&self) -> (Real, Real, Real)
Sourcepub fn shape(&self) -> Option<Real>
pub fn shape(&self) -> Option<Real>
Shape parameter for Stable (alpha) or Matérn (nu). Returns None for 3-parameter models.
Sourcepub fn semivariance(&self, distance: Real) -> Real
pub fn semivariance(&self, distance: Real) -> Real
Semivariance at distance. Assumes distance >= 0 (e.g. from haversine); clamps negative input to 0.
pub fn covariance(&self, distance: Real) -> Real
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 moreSource§impl Debug for VariogramModel
impl Debug for VariogramModel
Source§impl PartialEq for VariogramModel
impl PartialEq for VariogramModel
impl Copy for VariogramModel
impl StructuralPartialEq for VariogramModel
Auto Trait Implementations§
impl Freeze for VariogramModel
impl RefUnwindSafe for VariogramModel
impl Send for VariogramModel
impl Sync for VariogramModel
impl Unpin for VariogramModel
impl UnsafeUnpin 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.