pub struct Variogram {
pub distances: Array1<f64>,
pub semivariances: Array1<f64>,
pub n_pairs: Array1<usize>,
pub fitted_model: Option<SpatialKernel>,
}Expand description
Empirical variogram computation and modeling
Fields§
§distances: Array1<f64>§semivariances: Array1<f64>§n_pairs: Array1<usize>§fitted_model: Option<SpatialKernel>Implementations§
Source§impl Variogram
impl Variogram
Sourcepub fn compute_empirical(
coords: &Array2<f64>,
values: &Array1<f64>,
n_bins: usize,
) -> SklResult<Self>
pub fn compute_empirical( coords: &Array2<f64>, values: &Array1<f64>, n_bins: usize, ) -> SklResult<Self>
Compute empirical variogram from spatial data
Sourcepub fn fit_model(&mut self, model_type: &str) -> SklResult<()>
pub fn fit_model(&mut self, model_type: &str) -> SklResult<()>
Fit a spatial kernel model to the empirical variogram
Sourcepub fn goodness_of_fit(&self) -> SklResult<f64>
pub fn goodness_of_fit(&self) -> SklResult<f64>
Compute goodness of fit for the fitted model
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Variogram
impl RefUnwindSafe for Variogram
impl Send for Variogram
impl Sync for Variogram
impl Unpin for Variogram
impl UnwindSafe for Variogram
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 more