pub struct AnisotropicVariogram {
pub model: VariogramModel,
pub nugget: f64,
pub sill: f64,
pub major: f64,
pub minor: f64,
pub vertical: f64,
pub azimuth: f64,
}Expand description
A variogram with directional ranges in a right-handed (x, y, z) frame.
major and minor are horizontal ranges, vertical is the vertical range,
and azimuth is degrees clockwise from north for the major axis. The scalar
model family, nugget, and partial sill use the same conventions as
Variogram.
Fields§
§model: VariogramModelStructured-component family.
nugget: f64Nugget effect c₀ ≥ 0 — the discontinuity at the origin.
sill: f64Structured partial sill c ≥ 0 — the correlated variance.
major: f64Horizontal major-axis range > 0.
minor: f64Horizontal minor-axis range > 0.
vertical: f64Vertical range > 0.
azimuth: f64Major-axis azimuth, normalized to [0, 360) degrees clockwise from north.
Implementations§
Source§impl AnisotropicVariogram
impl AnisotropicVariogram
Sourcepub fn new(
model: VariogramModel,
nugget: f64,
sill: f64,
major: f64,
minor: f64,
vertical: f64,
azimuth: f64,
) -> Result<AnisotropicVariogram>
pub fn new( model: VariogramModel, nugget: f64, sill: f64, major: f64, minor: f64, vertical: f64, azimuth: f64, ) -> Result<AnisotropicVariogram>
Build an anisotropic variogram, validating ranges, sills, and azimuth.
Sourcepub fn isotropic(
model: VariogramModel,
nugget: f64,
sill: f64,
range: f64,
) -> Result<AnisotropicVariogram>
pub fn isotropic( model: VariogramModel, nugget: f64, sill: f64, range: f64, ) -> Result<AnisotropicVariogram>
Convenience constructor for an isotropic-equivalent anisotropic model.
Sourcepub fn total_sill(&self) -> f64
pub fn total_sill(&self) -> f64
Total sill c₀ + c.
Sourcepub fn anisotropic_distance(&self, dx: f64, dy: f64, dz: f64) -> f64
pub fn anisotropic_distance(&self, dx: f64, dy: f64, dz: f64) -> f64
Anisotropic lag distance for an offset (dx, dy, dz).
The horizontal offset is rotated into major/minor coordinates, then
minor and vertical components are stretched into major-range units. A
point one major away along the major axis, one minor away along the
minor axis, or one vertical away vertically all yield an effective lag
of major.
Trait Implementations§
Source§impl Clone for AnisotropicVariogram
impl Clone for AnisotropicVariogram
Source§fn clone(&self) -> AnisotropicVariogram
fn clone(&self) -> AnisotropicVariogram
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AnisotropicVariogram
Source§impl Debug for AnisotropicVariogram
impl Debug for AnisotropicVariogram
Source§impl<'de> Deserialize<'de> for AnisotropicVariogram
impl<'de> Deserialize<'de> for AnisotropicVariogram
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<&AnisotropicVariogram> for SpatialVariogram
impl From<&AnisotropicVariogram> for SpatialVariogram
Source§fn from(value: &AnisotropicVariogram) -> Self
fn from(value: &AnisotropicVariogram) -> Self
Source§impl From<AnisotropicVariogram> for SpatialVariogram
impl From<AnisotropicVariogram> for SpatialVariogram
Source§fn from(value: AnisotropicVariogram) -> Self
fn from(value: AnisotropicVariogram) -> Self
Source§impl PartialEq for AnisotropicVariogram
impl PartialEq for AnisotropicVariogram
Source§impl Serialize for AnisotropicVariogram
impl Serialize for AnisotropicVariogram
impl StructuralPartialEq for AnisotropicVariogram
Auto Trait Implementations§
impl Freeze for AnisotropicVariogram
impl RefUnwindSafe for AnisotropicVariogram
impl Send for AnisotropicVariogram
impl Sync for AnisotropicVariogram
impl Unpin for AnisotropicVariogram
impl UnsafeUnpin for AnisotropicVariogram
impl UnwindSafe for AnisotropicVariogram
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar 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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.