struct GampState {
x_hat_meas: Vec<f64>,
tau_x_meas: f64,
s_hat_meas: Vec<Complex64>,
x_hat_psi: Vec<f64>,
p_hat_psi: Vec<f64>,
tau_x_hat_psi: f64,
tau_p_psi: f64,
damp: f64,
damp_ceiling: f64,
}Expand description
Persistent GAMP state carried across linearization iterations.
Fields§
§x_hat_meas: Vec<f64>§tau_x_meas: f64§s_hat_meas: Vec<Complex64>§x_hat_psi: Vec<f64>§p_hat_psi: Vec<f64>§tau_x_hat_psi: f64§tau_p_psi: f64§damp: f64CURRENT damping factor for the signal updates. Starts at the configured
damp_rate_sig and is only ever reduced when a sweep is found to have made the
data fit worse (see the adaptive-damping note on gamp_awgn), then relaxed back
towards the configured value. On data where nothing diverges it never leaves the
configured value, so the iteration is bit-for-bit what it was before.
damp_ceiling: f64Ceiling that damp may relax back up to. RATCHETS DOWN on every rejected sweep: once a
run has shown it diverges at a given damping, letting the damping climb back to that value
simply re-diverges. Without this the guard catches each blow-up but the iteration keeps
re-entering the divergent regime and the result is still unusable.
Implementations§
Auto Trait Implementations§
impl Freeze for GampState
impl RefUnwindSafe for GampState
impl Send for GampState
impl Sync for GampState
impl Unpin for GampState
impl UnsafeUnpin for GampState
impl UnwindSafe for GampState
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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