pub struct DecomposeParams {
pub b0: f64,
pub n_inner: usize,
pub chi_bound: DecomposeChiBound,
pub lsqcurvefit: LsqTrrOptions,
pub unwrap_phase: bool,
pub solvers: DecomposeStageSolvers,
}Expand description
Parameters for decompose.
Fields§
§b0: f64Main field strength in Tesla.
n_inner: usizeNumber of alternating 3-stage fit passes per voxel (reference default: 10).
chi_bound: DecomposeChiBoundThe bound on |χ+| and |χ−| in the stage-3 search. Default: the authors’ 0.5 ppm
(DecomposeChiBound::Ppm); DecomposeChiBound::EchoSpacing takes it from the scan
(see the module docs, The χ bound).
lsqcurvefit: LsqTrrOptionsoptimoptions('lsqcurvefit', …) of every stage: iterations, evaluations, tolerances and
finite-difference settings. Default: MATLAB’s defaults ([LsqTrrOptions::default]), which
the authors’ code keeps (MaxIterations 400, the 1e-6 tolerances).
unwrap_phase: boolUnwrap the phase along the echoes (see the module docs, Phase unwrapping). Default
false: the authors’ code takes every phase on its principal branch (log, angle).
It leaves the χ search to chi_bound.
solvers: DecomposeStageSolversThe solver of each of the three stages (see DecomposeStageSolvers).
Implementations§
Source§impl DecomposeParams
impl DecomposeParams
Sourcepub fn validate(&self) -> Result<(), InputError>
pub fn validate(&self) -> Result<(), InputError>
Checks a fixed chi_bound (DecomposeChiBound::Ppm): it must be ≥ 0 ppm (a negative
bound leaves the fit’s lower bound above its upper one). An
EchoSpacing bound depends on the echo times, and
decompose checks it.
Trait Implementations§
Source§impl Clone for DecomposeParams
impl Clone for DecomposeParams
Source§fn clone(&self) -> DecomposeParams
fn clone(&self) -> DecomposeParams
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 DecomposeParams
impl Debug for DecomposeParams
Source§impl Default for DecomposeParams
impl Default for DecomposeParams
Auto Trait Implementations§
impl Freeze for DecomposeParams
impl RefUnwindSafe for DecomposeParams
impl Send for DecomposeParams
impl Sync for DecomposeParams
impl Unpin for DecomposeParams
impl UnsafeUnpin for DecomposeParams
impl UnwindSafe for DecomposeParams
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