pub struct ProjectedKrigingModel { /* private fields */ }Expand description
Ordinary kriging on projected (planar) coordinates with optional 2-D geometric anisotropy. The variogram’s range must be expressed in the same linear units as the coordinates (e.g. km, m).
Implementations§
Source§impl ProjectedKrigingModel
impl ProjectedKrigingModel
Sourcepub fn new(
dataset: ProjectedDataset,
variogram: VariogramModel,
anisotropy: Anisotropy2D,
) -> Result<Self, KrigingError>
pub fn new( dataset: ProjectedDataset, variogram: VariogramModel, anisotropy: Anisotropy2D, ) -> Result<Self, KrigingError>
Build a projected ordinary kriging model. Pass Anisotropy2D::isotropic to disable
anisotropy.
Sourcepub fn new_with_extra_diagonal(
dataset: ProjectedDataset,
variogram: VariogramModel,
anisotropy: Anisotropy2D,
extra: Vec<Real>,
) -> Result<Self, KrigingError>
pub fn new_with_extra_diagonal( dataset: ProjectedDataset, variogram: VariogramModel, anisotropy: Anisotropy2D, extra: Vec<Real>, ) -> Result<Self, KrigingError>
Like new but adds extra (length n) to each main-diagonal covariance
term, modeling observation-specific (non-spatial) noise in addition to jitter.
pub fn anisotropy(&self) -> Anisotropy2D
pub fn predict(&self, coord: ProjectedCoord) -> Result<Prediction, KrigingError>
pub fn predict_batch( &self, coords: &[ProjectedCoord], ) -> Result<Vec<Prediction>, KrigingError>
Trait Implementations§
Source§impl Clone for ProjectedKrigingModel
impl Clone for ProjectedKrigingModel
Auto Trait Implementations§
impl Freeze for ProjectedKrigingModel
impl RefUnwindSafe for ProjectedKrigingModel
impl Send for ProjectedKrigingModel
impl Sync for ProjectedKrigingModel
impl Unpin for ProjectedKrigingModel
impl UnsafeUnpin for ProjectedKrigingModel
impl UnwindSafe for ProjectedKrigingModel
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.