pub struct FittedAtomCarveInput {
pub phi_a: Array2<f64>,
pub phi_b: Array2<f64>,
pub surface: TensorSurfaceFit,
pub joint_covariance: Array2<f64>,
}Expand description
The real-fit producer of a representational CarveInput from a fitted
d = 2 product atom (#993).
Holds the two factor bases the carve consumes plus the
TensorSurfaceFit re-fit of the atom’s own ambient reconstruction. The
fit is what supplies the scale-included decoder-coefficient covariance
(coeff_covariance / joint_covariance) — the production inner Hessian is
a DIFFERENT parameterization (tangent frames, not tensor coefficients) and
cannot offer the carve a coefficient-space Vb, so the carve’s covariance
is re-derived here on the same empirical code measure the test centers
against (the coherence the module docs require). Owns its arrays so the
borrowed CarveInput built via Self::representational_carve_input can
reference them for the lifetime of the carve call.
Fields§
§phi_a: Array2<f64>Factor-A basis on the code sample, n × M₁.
phi_b: Array2<f64>Factor-B basis on the code sample, n × M₂.
surface: TensorSurfaceFitREML re-fit of the atom’s ambient reconstruction onto the tensor basis, carrying the per-channel coefficient matrices and their scale-included covariance.
joint_covariance: Array2<f64>Cross-dimension joint covariance of the stacked coefficient vector
(TensorSurfaceFit::joint_covariance), materialized once so the
borrowed CarveInput can reference it.
Implementations§
Source§impl FittedAtomCarveInput
impl FittedAtomCarveInput
Sourcepub fn representational_carve_input(&self) -> CarveInput<'_>
pub fn representational_carve_input(&self) -> CarveInput<'_>
Borrow this bundle as a representational CarveInput ready for
carve. The coefficient covariance and the joint covariance come
from the REML re-fit; the gauge kernels default to the
partition-of-unity convention (u = 1), which is the correct centered-
basis null direction for the constant-leading harmonic factor bases.
Trait Implementations§
Source§impl Clone for FittedAtomCarveInput
impl Clone for FittedAtomCarveInput
Source§fn clone(&self) -> FittedAtomCarveInput
fn clone(&self) -> FittedAtomCarveInput
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 Freeze for FittedAtomCarveInput
impl RefUnwindSafe for FittedAtomCarveInput
impl Send for FittedAtomCarveInput
impl Sync for FittedAtomCarveInput
impl Unpin for FittedAtomCarveInput
impl UnsafeUnpin for FittedAtomCarveInput
impl UnwindSafe for FittedAtomCarveInput
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,
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.