pub struct MaternBasisSpec {
pub center_strategy: CenterStrategy,
pub periodic: Option<Vec<Option<f64>>>,
pub length_scale: MaternLengthScale,
pub nu: MaternNu,
pub include_intercept: bool,
pub double_penalty: bool,
pub identifiability: MaternIdentifiability,
pub aniso_log_scales: Option<Vec<f64>>,
}Expand description
Matérn basis configuration.
Fields§
§center_strategy: CenterStrategy§periodic: Option<Vec<Option<f64>>>§length_scale: MaternLengthScale§nu: MaternNu§include_intercept: bool§double_penalty: bool§identifiability: MaternIdentifiability§aniso_log_scales: Option<Vec<f64>>Per-axis anisotropy log-scales η_a (contrasts with Ση_a = 0).
This implements geometric anisotropy: Λ = κA where A = diag(exp(η_a)), det(A) = 1. The kernel is evaluated at r = κ|Ah| instead of r = κ|h|. The decomposition preserves the isotropic scaling law for global κ and adds d−1 shape parameters for directional relevance.
Conditional positive definiteness is preserved under any invertible linear coordinate transform (Schoenberg), so the kernel remains valid.
When Some, the distance is r = √(Σ_a exp(2η_a) · (x_a - c_a)²). When None, isotropic distance r = ‖x - c‖ is used.
Trait Implementations§
Source§impl Clone for MaternBasisSpec
impl Clone for MaternBasisSpec
Source§fn clone(&self) -> MaternBasisSpec
fn clone(&self) -> MaternBasisSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MaternBasisSpec
impl Debug for MaternBasisSpec
Source§impl<'de> Deserialize<'de> for MaternBasisSpec
impl<'de> Deserialize<'de> for MaternBasisSpec
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MaternBasisSpec
impl RefUnwindSafe for MaternBasisSpec
impl Send for MaternBasisSpec
impl Sync for MaternBasisSpec
impl Unpin for MaternBasisSpec
impl UnsafeUnpin for MaternBasisSpec
impl UnwindSafe for MaternBasisSpec
Blanket Implementations§
impl<T> Allocation for T
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
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>,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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.