pub struct R2PrimeNetNorm {
pub r2star: (f64, f64),
pub r2prime: (f64, f64),
pub dr: f64,
}Expand description
Training z-score constants for R2PRIMEnet
(xsepnet_train_patch_norm_factor_inplane_largedegree_romeo_arlo.mat): each field is
(mean, std), in Dr-scaled (ppm-equivalent) units. The input is normalized
(r2star/dr - mean)/std; the output de-normalized (y*std + mean)*dr.
Fields§
§r2star: (f64, f64)(mean, std) of the Dr-scaled R2* input channel.
r2prime: (f64, f64)(mean, std) of the Dr-scaled R2′ output channel.
dr: f64Relaxivity (Hz/ppm) scaling R2*/R2′ into the network’s ppm-equivalent units.
Implementations§
Source§impl R2PrimeNetNorm
impl R2PrimeNetNorm
Sourcepub(crate) fn r2prime_hz(&self, z: f64) -> f64
pub(crate) fn r2prime_hz(&self, z: f64) -> f64
De-normalise one network output to R2′ in Hz, set to 0 where negative (see
r2primenet).
Trait Implementations§
Source§impl Clone for R2PrimeNetNorm
impl Clone for R2PrimeNetNorm
Source§fn clone(&self) -> R2PrimeNetNorm
fn clone(&self) -> R2PrimeNetNorm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for R2PrimeNetNorm
Source§impl Debug for R2PrimeNetNorm
impl Debug for R2PrimeNetNorm
Source§impl Default for R2PrimeNetNorm
impl Default for R2PrimeNetNorm
Auto Trait Implementations§
impl Freeze for R2PrimeNetNorm
impl RefUnwindSafe for R2PrimeNetNorm
impl Send for R2PrimeNetNorm
impl Sync for R2PrimeNetNorm
impl Unpin for R2PrimeNetNorm
impl UnsafeUnpin for R2PrimeNetNorm
impl UnwindSafe for R2PrimeNetNorm
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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)
Converts
&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)
Converts
&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> ⓘ
Converts
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> ⓘ
Converts
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