pub struct MaternBasisSpec {
pub center_strategy: CenterStrategy,
pub periodic: Option<Vec<Option<f64>>>,
pub length_scale: f64,
pub nu: MaternNu,
pub include_intercept: bool,
pub double_penalty: bool,
pub identifiability: MaternIdentifiability,
pub aniso_log_scales: Option<Vec<f64>>,
pub nullspace_shrinkage_survived: Option<bool>,
}Expand description
Matérn basis configuration.
Fields§
§center_strategy: CenterStrategy§periodic: Option<Vec<Option<f64>>>§length_scale: f64§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.
nullspace_shrinkage_survived: Option<bool>Frozen double-penalty nullspace-shrinkage decision (gam#787/#860).
None (the default, and the cold-build value) = decide whether to emit
the DoublePenaltyNullspace candidate via the κ-dependent spectral test in
build_nullspace_shrinkage_penalty. Some(b) = force the decision (set by
the freeze step from the bootstrap-κ build, mirrored from
MaternIdentifiability::FrozenTransform) so the learned-penalty count stays
invariant as the κ-optimizer rebuilds the design at each trial length-scale.
Only consulted when double_penalty is true.
Trait Implementations§
Source§impl Clone for MaternBasisSpec
impl Clone for MaternBasisSpec
Source§fn clone(&self) -> MaternBasisSpec
fn clone(&self) -> MaternBasisSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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
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>
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>
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>
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.