#[non_exhaustive]pub struct FsvdResult {
pub singular_values: Vec<f64>,
pub left_functions: FdMatrix,
pub right_functions: FdMatrix,
pub left_scores: FdMatrix,
pub right_scores: FdMatrix,
}Expand description
Result of a functional SVD (fsvd) between two paired functional samples.
fsvd decomposes the empirical cross-covariance surface between two samples
X (n×p) and Y (n×q) — observed on the same n subjects — into paired
left/right singular functions and singular values. The singular functions are
scaled to unit functional (L2) norm on their respective argument grids, and
the scores are the projections of each sample onto its singular functions.
This struct is defined alongside cross_covariance but is populated by
fsvd. It is #[non_exhaustive] so fields may be added without breaking
downstream code.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.singular_values: Vec<f64>Singular values of the cross-covariance decomposition (length ncomp,
non-increasing).
left_functions: FdMatrixLeft singular functions, shape p×ncomp (column-major). Each column has
unit functional L2 norm on argvals_x.
right_functions: FdMatrixRight singular functions, shape q×ncomp (column-major). Each column has
unit functional L2 norm on argvals_y.
left_scores: FdMatrixScores of sample X on the left singular functions, shape n×ncomp.
right_scores: FdMatrixScores of sample Y on the right singular functions, shape n×ncomp.
Trait Implementations§
Source§impl Clone for FsvdResult
impl Clone for FsvdResult
Source§fn clone(&self) -> FsvdResult
fn clone(&self) -> FsvdResult
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 FsvdResult
impl Debug for FsvdResult
Source§impl PartialEq for FsvdResult
impl PartialEq for FsvdResult
impl StructuralPartialEq for FsvdResult
Auto Trait Implementations§
impl Freeze for FsvdResult
impl RefUnwindSafe for FsvdResult
impl Send for FsvdResult
impl Sync for FsvdResult
impl Unpin for FsvdResult
impl UnsafeUnpin for FsvdResult
impl UnwindSafe for FsvdResult
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> 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,
impl<T> Scalar 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>
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.