pub struct RayRestoration {
pub block: usize,
pub rho_first: usize,
pub rho_count: usize,
pub log_strength_ratio: f64,
pub likelihood_slope: f64,
pub penalty_slope: f64,
pub block_step_inf: f64,
}Expand description
The block-level reading of a ray the joint Newton was descending when it
stopped: along the last accepted step δ, the likelihood term slopes
down by likelihood_slope = ∇(−ℓ)·δ < 0 while block block’s penalty
slopes up by only penalty_slope = (λ_b S_b β)·δ > 0. The penalized
objective is stationary along δ at the strength ratio
r = −likelihood_slope / penalty_slope > 1, so raising every log
strength of that block by log_strength_ratio = ln r closes the ray at
the iterate the solve stopped on. The ratio is read off the two slopes the
solve already had; nothing here is a step size.
Fields§
§block: usizeIndex of the parameter block carrying the ray.
rho_first: usizeThe outer ρ coordinates of that block’s penalties: rho_count of
them, contiguous from rho_first (ρ is laid out block by block).
rho_count: usize§log_strength_ratio: f64ln r, the amount every one of rho_indices has to rise.
likelihood_slope: f64∇(−ℓ)·δ along the accepted step (negative: the likelihood descends).
penalty_slope: f64(λ_b S_b β)·δ along the accepted step (positive: the penalty resists).
block_step_inf: f64‖δ_b‖∞, the block’s share of the accepted step.
Implementations§
Source§impl RayRestoration
impl RayRestoration
Sourcepub fn rho_indices(&self) -> Range<usize> ⓘ
pub fn rho_indices(&self) -> Range<usize> ⓘ
The outer ρ coordinates this restoration raises.
Trait Implementations§
Source§impl Clone for RayRestoration
impl Clone for RayRestoration
Source§fn clone(&self) -> RayRestoration
fn clone(&self) -> RayRestoration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RayRestoration
Source§impl Debug for RayRestoration
impl Debug for RayRestoration
Source§impl Display for RayRestoration
impl Display for RayRestoration
Source§impl PartialEq for RayRestoration
impl PartialEq for RayRestoration
impl StructuralPartialEq for RayRestoration
Auto Trait Implementations§
impl Freeze for RayRestoration
impl RefUnwindSafe for RayRestoration
impl Send for RayRestoration
impl Sync for RayRestoration
impl Unpin for RayRestoration
impl UnsafeUnpin for RayRestoration
impl UnwindSafe for RayRestoration
Blanket Implementations§
impl<T> Boilerplate 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.