pub struct LbvParams {
pub tol: f64,
pub depth: Option<usize>,
pub peel: usize,
pub n1: usize,
pub n2: usize,
pub n3: usize,
pub precision: LbvPrecision,
pub b0: f64,
pub echo_times: Vec<f64>,
pub te: EchoTime,
}Expand description
LBV parameters (LBV.m’s defaults)
Fields§
§tol: f64Stopping tolerance of the coarsest-grid relaxation (tol, default 0.01): the
relaxation repeats while the summed absolute update over the coarsest interior exceeds
it. Absolute, in MEDI’s units: radians accumulated over the echo time te
picks. Must be finite and ≥ 0. Any other value is kept as given; the rule
lbv.tolerance (crate::pipeline::rules::RULES) suggests LBV.m’s 0.01 (e.g. to a
settings file holding the earlier SOR solver’s relative 1e-6).
depth: Option<usize>Coarsest multigrid level (depth). None (LBV.m’s −1, the default): ⌊log2 m⌋ − 3
for the smallest dimension m, at least 0. At most 8.
peel: usizeBoundary layers removed beyond the one boundary layer (peel, default 0)
n1: usizeRelaxations on each level before the recursive call (N1, default 30)
n2: usizeRelaxations on each level after the recursive call (N2, default 100)
n3: usizeRelaxations on the finest level after the full multigrid cycle (N3, default 100)
precision: LbvPrecisionArithmetic (default LbvPrecision::Double; Single is mexMGv6’s own)
b0: f64Field strength in Tesla (scan parameter, for the radian conversion)
echo_times: Vec<f64>Echo times in seconds (scan parameter, for the radian conversion)
te: EchoTimeWhich echo time converts the field from ppm to radians. Default
EchoTime::Spacing, MEDI’s delta_TE (TE(2) − TE(1), or TE for one echo): LBV.m
takes iFreq from Fit_ppm_complex, the phase accrued over the echo spacing, and its
tol is absolute in those units.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LbvParams
impl RefUnwindSafe for LbvParams
impl Send for LbvParams
impl Sync for LbvParams
impl Unpin for LbvParams
impl UnsafeUnpin for LbvParams
impl UnwindSafe for LbvParams
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> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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