#[non_exhaustive]pub struct PaceFpcaResult {
pub mean: Vec<f64>,
pub eigenvalues: Vec<f64>,
pub eigenfunctions: FdMatrix,
pub scores: FdMatrix,
pub fitted: FdMatrix,
pub fitted_lower: FdMatrix,
pub fitted_upper: FdMatrix,
pub argvals: Vec<f64>,
pub sigma2: f64,
pub ncomp: usize,
}Expand description
Result of PACE sparse FPCA.
All matrix outputs are column-major FdMatrix (project-wide convention).
ncomp in the result may be less than the requested config.ncomp when the
smoothed covariance surface yields fewer positive eigenvalues than requested
(a finite-sample artifact of kernel estimation on sparse data).
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.mean: Vec<f64>Kernel-smoothed mean function on the work grid (length m).
eigenvalues: Vec<f64>Functional eigenvalues (variance explained per component), length ncomp.
eigenfunctions: FdMatrixEigenfunctions on the work grid, shape m × ncomp (column-major).
scores: FdMatrixBLUP (conditional-expectation) FPC scores, shape n × ncomp (column-major).
fitted: FdMatrixFitted trajectories on the work grid, shape n × m (column-major).
fitted_lower: FdMatrixLower pointwise confidence band, shape n × m.
fitted_upper: FdMatrixUpper pointwise confidence band, shape n × m.
argvals: Vec<f64>Work grid used for all outputs (clone of config.work_grid).
sigma2: f64Measurement-error variance used (echoed from config).
ncomp: usizeNumber of components actually extracted (may be < config.ncomp).
Trait Implementations§
Source§impl Clone for PaceFpcaResult
impl Clone for PaceFpcaResult
Source§fn clone(&self) -> PaceFpcaResult
fn clone(&self) -> PaceFpcaResult
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 PaceFpcaResult
impl Debug for PaceFpcaResult
Source§impl PartialEq for PaceFpcaResult
impl PartialEq for PaceFpcaResult
impl StructuralPartialEq for PaceFpcaResult
Auto Trait Implementations§
impl Freeze for PaceFpcaResult
impl RefUnwindSafe for PaceFpcaResult
impl Send for PaceFpcaResult
impl Sync for PaceFpcaResult
impl Unpin for PaceFpcaResult
impl UnsafeUnpin for PaceFpcaResult
impl UnwindSafe for PaceFpcaResult
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.