pub struct ReparamResult {
pub s_transformed: Array2<f64>,
pub log_det: f64,
pub det1: Array1<f64>,
pub qs: Array2<f64>,
pub canonical_transformed: Vec<CanonicalPenalty>,
pub e_transformed: Array2<f64>,
pub u_truncated: Array2<f64>,
pub penalty_shrinkage_ridge: f64,
}Expand description
Result of the stable reparameterization algorithm from Wood (2011) Appendix B
Fields§
§s_transformed: Array2<f64>Penalty matrix in TRANSFORMED coefficient coordinates.
This must be compatible with beta_transformed and X_transformed = X * Qs.
log_det: f64Log-determinant of the penalty matrix (stable computation)
det1: Array1<f64>First derivatives of log-determinant w.r.t. log-smoothing parameters
qs: Array2<f64>Orthogonal transformation matrix Qs
canonical_transformed: Vec<CanonicalPenalty>Canonical penalties in the TRANSFORMED coordinate frame.
The single source of truth for penalty roots in the transformed frame.
Downstream consumers use these for block-local PenaltyCoordinate
construction, TK correction, and ext-coord paths.
e_transformed: Array2<f64>Lambda-dependent penalty square root in TRANSFORMED coordinates (rank x p matrix). This is used for applying the actual penalty in the least squares solve.
u_truncated: Array2<f64>Truncated eigenvectors (p × m where m = p - structural_rank).
Coordinate frame note:
- This matrix is stored in the TRANSFORMED coefficient frame (post-
Qs), i.e. it is compatible withcanonical_transformed,beta_transformed, and transformed Hessians without additional coordinate mapping.
These vectors span the structural null space used by positive-part log-determinant conventions.
penalty_shrinkage_ridge: f64The rho-independent shrinkage ridge magnitude that was added to each eigenvalue of the penalized block. Zero means no shrinkage was applied.
Trait Implementations§
Source§impl Clone for ReparamResult
impl Clone for ReparamResult
Source§fn clone(&self) -> ReparamResult
fn clone(&self) -> ReparamResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ReparamResult
impl !UnwindSafe for ReparamResult
impl Freeze for ReparamResult
impl Send for ReparamResult
impl Sync for ReparamResult
impl Unpin for ReparamResult
impl UnsafeUnpin for ReparamResult
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,
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.