pub struct MpieAuxiliaryState {
pub velocity: Vec<Complex64>,
pub anchor: Vec<Complex64>,
pub effective_frames_since_momentum: usize,
pub object_step: f64,
pub stability: f64,
pub epsilon: f64,
pub momentum_interval: usize,
pub momentum_friction: f64,
pub momentum_feedback: f64,
}Expand description
Resumable object-spectrum momentum state for mPIE.
velocity and anchor use centered, row-major reconstruction-spectrum
ordering. The stored scalar parameters make the recurrence unambiguous and
allow a resumed crate::algorithms::Mpie run to reject a configuration
that would reinterpret its pending momentum interval.
Fields§
§velocity: Vec<Complex64>Centered complex velocity spectrum accumulated at momentum events.
anchor: Vec<Complex64>Centered object spectrum immediately after the last momentum event.
effective_frames_since_momentum: usizePositive-weight measured frames processed since the last event.
object_step: f64Per-frame rPIE object-correction scale used to create this state.
stability: f64Local-to-maximum pupil-power blend used to create this state.
epsilon: f64Numerical denominator floor used to create this state.
momentum_interval: usizeEffective-frame count between momentum events.
momentum_friction: f64Fraction of the previous velocity retained at each event.
momentum_feedback: f64Fraction of the updated velocity added to the object spectrum.
Trait Implementations§
Source§impl Clone for MpieAuxiliaryState
impl Clone for MpieAuxiliaryState
Source§fn clone(&self) -> MpieAuxiliaryState
fn clone(&self) -> MpieAuxiliaryState
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 MpieAuxiliaryState
impl Debug for MpieAuxiliaryState
Source§impl<'de> Deserialize<'de> for MpieAuxiliaryState
impl<'de> Deserialize<'de> for MpieAuxiliaryState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for MpieAuxiliaryState
impl PartialEq for MpieAuxiliaryState
Source§fn eq(&self, other: &MpieAuxiliaryState) -> bool
fn eq(&self, other: &MpieAuxiliaryState) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for MpieAuxiliaryState
impl Serialize for MpieAuxiliaryState
impl StructuralPartialEq for MpieAuxiliaryState
Auto Trait Implementations§
impl Freeze for MpieAuxiliaryState
impl RefUnwindSafe for MpieAuxiliaryState
impl Send for MpieAuxiliaryState
impl Sync for MpieAuxiliaryState
impl Unpin for MpieAuxiliaryState
impl UnsafeUnpin for MpieAuxiliaryState
impl UnwindSafe for MpieAuxiliaryState
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
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 more