pub struct MeasureJetMomentTable {
pub center: Array1<f64>,
pub m0: Array1<f64>,
pub m1: Array2<f64>,
pub m2: Vec<Array2<f64>>,
}Expand description
Per-cell moment table: Gaussian-weighted coordinate moments of orders
0..=2 crossed with response channels, all centered at the cell’s
reference point c.
Channel convention: channel 0 is the UNIT channel (g ≡ 1); further
channels carry responses (y, and later y², PIRLS working z, w per
the frame notes). The table itself never enforces the convention — it
aggregates whatever the caller hands it — but jet_sufficient_stats
reads q, a_mean, and the Gram off channel 0.
m2 is stored as the full (symmetric-by-construction) d×d second
moment per channel.
Fields§
§center: Array1<f64>Reference point c (length d).
m0: Array1<f64>Per channel: Σ_i w_i g_i.
m1: Array2<f64>Per channel × d: Σ_i w_i g_i (x_i − c).
m2: Vec<Array2<f64>>Per channel: d×d matrix Σ_i w_i g_i (x_i − c)(x_i − c)ᵀ.
Implementations§
Source§impl MeasureJetMomentTable
impl MeasureJetMomentTable
Sourcepub fn zero(center: Array1<f64>, n_channels: usize) -> Self
pub fn zero(center: Array1<f64>, n_channels: usize) -> Self
The monoid identity at center: an all-zero table over n_channels
channels. Merging it (at ANY center) into another table leaves that
table’s moments unchanged up to the exact zero shift.
Sourcepub fn n_channels(&self) -> usize
pub fn n_channels(&self) -> usize
Number of response channels stored (channel 0 = unit by convention).
Trait Implementations§
Source§impl Clone for MeasureJetMomentTable
impl Clone for MeasureJetMomentTable
Source§fn clone(&self) -> MeasureJetMomentTable
fn clone(&self) -> MeasureJetMomentTable
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 MeasureJetMomentTable
impl Debug for MeasureJetMomentTable
Source§impl PartialEq for MeasureJetMomentTable
impl PartialEq for MeasureJetMomentTable
Source§fn eq(&self, other: &MeasureJetMomentTable) -> bool
fn eq(&self, other: &MeasureJetMomentTable) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MeasureJetMomentTable
Auto Trait Implementations§
impl Freeze for MeasureJetMomentTable
impl RefUnwindSafe for MeasureJetMomentTable
impl Send for MeasureJetMomentTable
impl Sync for MeasureJetMomentTable
impl Unpin for MeasureJetMomentTable
impl UnsafeUnpin for MeasureJetMomentTable
impl UnwindSafe for MeasureJetMomentTable
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,
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.